Skip to content

Spring MVC support for JSON parsing/streaming APIs (JSON Processing API, Gson, Jackson) [SPR-15270] #19835

Closed as not planned

Description

@spring-projects-issues

Juergen Hoeller opened SPR-15270 and commented

Along with support for the JSON Binding API (#19490) in the form of a Jackson-style conversion for payload objects, let's also consider direct support for the underlying JSON Processing API (https://json-processing-spec.java.net/).

We could accept a JsonObject/JsonArray method argument as request payload and convert a corresponding return value to a response payload, using JsonReader/JsonWriter underneath the covers. This would allow handler method implementations to programmatically introspect an incoming JSON payload structure and use a JsonObjectBuilder/JsonArrayBuilder to programmatically build a response payload.

Beyond that, we could also allow for retrieving JsonParser/JsonGenerator handles for the JSON-P streaming API: both as handler method arguments, but referring to the request payload (not fully parsed yet) and the upcoming response payload (to be built in a streaming fashion), respectively. This would be equivalent to our current support for declaring a Reader/Writer for direct request/response payload access.


Issue Links:

Activity

  1. added
    type: enhancement
    in: web
    on Jan 11, 2019
  2. changed the title [-]Explicit support for JSON parsing/streaming APIs (JSON Processing API, Gson, Jackson) [SPR-15270][/-] [+]Spring MVC support for JSON parsing/streaming APIs (JSON Processing API, Gson, Jackson) [SPR-15270][/+] on Jan 30, 2019
  3. removed this from the 6.x Backlog milestone on Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions