Description
JAX-RS 2.0 spec talks about the optional support for JSR-353 (section 10.2.6):
http://jcp.org/en/jsr/detail?id=353
10.2.6 Java API for JSON Processing
In a product that supports the Java API for JSON Processing (JSON-P) [15], implementations MUST support
entity providers for the following types: JsonStructure, JsonObject and JsonArray. Therefore, the
standard set of entity providers from Section 4.2.4 is extended to support these types in combinations with
the application/json media type.Note that other types from the JSON-P API such as JsonParser, JsonGenerator, JsonReader and
JsonWriter can also be integrated into JAX-RS applications using the entity providers for InputStream
and StreamingOutput.
Implementation notes:
[Sergey] I propose we add a related MessageBodyWriter/Reader to rt/rs/extension/providers.
Implemented using JSR-353 reference implementation: https://jsonp.java.net/