<< Back to previous view

[JSON_PROCESSING_SPEC-26] Provide read() methods to return Map<String,Object> and List in JsonReader Created: 27/Nov/12  Updated: 09/Dec/12  Resolved: 09/Dec/12

Status: Closed
Project: json-processing-spec
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.0-pr

Type: Improvement Priority: Major
Reporter: Sutanu Ghosh Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants: jitu and Sutanu Ghosh


The JsonReader can have two additional read() methods to de-serialize a JSON object or array.

JsonReader { Map<String,Object> readObjectAsMap( ) List readArrayAsList( ) }

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 JsonObject or JsonArray to a Map<String,Object> or a List object respectively after de-serializing via JsonReader.

Comment by jitu [ 09/Dec/12 04:51 AM ]

Will consider JsonArray to implement List<JsonValue>
and JsonObject to implement Map<String, JsonValue>

Generated at Fri Apr 25 07:21:07 UTC 2014 using JIRA 4.0.2#472.