On Monday, December 11, 2017 at 9:39:52 PM UTC+1, Peter Donald wrote:
>
> Hi, 
>
> Have you considered the javax.json API?


No, just like I didn't consider org.json.
 

> There are some parts that may 
> not be able to be directly translated but from memory it should mostly 
> work. The "advantage" is that it is a standard that is starting to 
> gain traction and will likely be present in lots more APIs as more of 
> the EE stack adopts it. The "disadvantage" is that the api is a bit 
> more primitive and it evolves slowly. It could probably be done with 
> just @JsOverlay methods and a few adapter classes.


I think it would mostly involve adapter classes (JsonObject extends Map, 
JsonArray extends List; so they cannot be implemented as native types)
 

> Another 
> disadvantage is that it is an immutable/read-only API. 
>

It's actually not: JsonObjectBuilder and JsonArrayBuilder allow 
constructing values.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/5dbdcd27-d141-4b07-935e-4ec5e994ddc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to