You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spring MVC support for JSON parsing/streaming APIs (JSON Processing API, Gson, Jackson) [SPR-15270] #19835
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.
At pretty much the same level, we could also support Jackson's streaming API as well as Gson's in terms of direct JsonReader/JsonWriter arguments on MVC handler methods.
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
Activity
spring-projects-issues commentedon Mar 24, 2017
Juergen Hoeller commented
At pretty much the same level, we could also support Jackson's streaming API as well as Gson's in terms of direct
JsonReader/JsonWriterarguments on MVC handler methods.http://www.baeldung.com/jackson-streaming-api
http://www.mkyong.com/java/jackson-streaming-api-to-read-and-write-json/
https://sites.google.com/site/gson/streaming
https://www.mkyong.com/java/gson-streaming-to-read-and-write-json/
[-]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][/+]