Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5413

Support Java API for JSON Processing

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0
    • JAX-RS
    • None
    • Unknown

    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/

      Attachments

        Activity

          People

            reta Andriy Redko
            sergey_beryozkin Sergey Beryozkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: