Issue Details (XML | Word | Printable)

Key: JSON_PROCESSING_SPEC-25
Type: Improvement Improvement
Status: Closed Closed
Resolution: Invalid
Priority: Major Major
Assignee: Unassigned
Reporter: Sutanu Ghosh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
json-processing-spec

Provide read() methods to retrun Map<String,Object> and List in JsonReader

Created: 27/Nov/12 05:22 PM   Updated: 27/Nov/12 05:55 PM   Resolved: 27/Nov/12 05:55 PM
Component/s: None
Affects Version/s: 1.0
Fix Version/s: None

Time Tracking:
Not Specified

Tags:
Participants: jitu and Sutanu Ghosh


 Description  « Hide

The JsonWriter can have two additional write() methods to serialize a Map<String,Object> and a List.

JsonWriter { write(Map<String,Object> jsonObject) write(List jsonArray) }

Map<String,Object> --> JSON object
List --> JSON array
The element objects in the Map or List can be any valid Java-JSON types or a Map or a List.

This will avoid the need to convert a Map<String,Object> or a List object to a JsonObject or JsonArray respectively before serializing via JsonWriter.



Sutanu Ghosh added a comment - 27/Nov/12 05:26 PM

Please close. Bad description when I cloned another one.


jitu added a comment - 27/Nov/12 05:55 PM

Closing a per the user request


jitu made changes - 27/Nov/12 05:55 PM
Field Original Value New Value
Status Open [ 1 ] Closed [ 6 ]
Resolution Invalid [ 6 ]