The Java API for JSON Processing (JSR-353) is the Java standard for producing and consuming JSON which was introduced as part of Java EE 7. JSR-353 includes object (DOM like) and stream (StAX like) APIs. In this post I will demonstrate the initial JSR-353 support we have added to MOXy's JSON binding in EclipseLink 2.6. You can now use MOXy to marshal to:
- javax.json.JsonArrayBuilder
- javax.json.JsonObjectBuilder
And unmarshal from:
- javax.json.JsonStructure
- javax.json.JsonObject
- javax.json.JsonArray
You can try this out today using a nightly build of EclipseLink 2.6.0:
The JSR-353 reference implementation is available here: