[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
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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.



 Comments   
Comment by jitu [ 09/Dec/12 ]

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

Generated at Mon Mar 02 23:32:11 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.