[JSON_PROCESSING_SPEC-24] Provide write() methods for Map<String,Object> and List in JsonWriter 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 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.



 Comments   
Comment by jitu [ 09/Dec/12 ]

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

Other than that we don't provide support any Object

Generated at Tue Jul 26 07:03:29 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.