I'd need to create a javax.json.JsonArray object (Java EE 7 API) from a java.util.List of JsonObjects.
Formerly, when using JSON API I used to do it simply with:
JSONArray jsonArray = new JSONArray(list);
But I can see there's no equivalent constructor in javax.json.JsonArray.
Is there a simple way (other than browsing across all the List) to do it ?
Thanks
listin this example?