Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
JsonArray and JSONArray
hi,
I have noticed this
https://vaadin.com/book/vaadin7/-/page/advanced.javascript.html
is using JsonArray comeing from
elemental.json.JsonArray not as described here
https://vaadin.com/wiki/-/wiki/Main/Exposing+server+side+API+to+JavaScript
import org.json.JSONArray;
how can in convert one to another?
As per https://vaadin.com/wiki/-/wiki/Main/Exposing+server+side+API+to+JavaScript warning, WARNING: This wiki page was last edited over a year ago and might be outdated, it definitely is. Please see https://vaadin.com/download/release/7.4/7.4.5/release-notes.html - The org.json and com.google.gwt.json libraries have been replaced by elemental.json.
Just change JSONArray to JsonArray and fix the imports. This is if you're using Vaadin 7.4.5+ which is the case in https://vaadin.com/book/vaadin7/-/page/advanced.javascript.html.
I meant how to convert JsonArray to JSONArray becayse there is no tutorial how to work with JsonArray from elemental import.