Json support in JavaEE (JSON P and JSON B) - tarunchhabra/parakalo GitHub Wiki
JSON Processing (JSON-P) is a Java API to process (for e.g. parse, generate, transform and query) JSON messages.
It produces and consumes JSON text in a streaming fashion (similar to StAX API for XML) and
allows to build a Java object model for JSON text using API classes (similar to DOM API for XML).
A JsonObject in JSON-P is immutable, unlike with JSON-B. If you want to update fields, you must create a new JsonObject, duplicate the fields, and then make changes.
https://javaee.github.io/jsonp/
JSON-B is a standard binding layer for converting Java objects to/from JSON messages.
It defines a default mapping algorithm for converting existing Java classes to JSON, while enabling developers to customize the mapping process through the use of Java annotations.
JSON-B automatically converts JSON into a defined object.
JSON-B automatically converts the JSON response into a POJO object, which you can then use to retrieve attributes
JSON-B also provides a parser that takes a String representation of a JSON object, and gives you back the corresponding JSON-B object.
https://javaee.github.io/jsonb-spec/ https://www.baeldung.com/java-json-binding-api