json-processing-spec
  1. json-processing-spec
  2. JSON_PROCESSING_SPEC-25

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Labels:
      None

      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.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Sutanu Ghosh
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: