JsonArray and JSONArray

I have noticed this
is using JsonArray comeing from
elemental.json.JsonArray not as described here
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
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.