Jettison
  1. Jettison
  2. JETTISON-106

Deep Copy for JSONObject(Map) and JSONArray(Collection) Constructors

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.1
    • Labels:
      None
    • Number of attachments :
      1

      Description

      When a JSONObject is constructed from a Java Map or a JSONArray is created from a Java Collection, Jettison only creates a shallow copy, which results in hybrid hierarchies and undesirable use of Map.toString() rather than JSONObject.toString() for internal objects. This patch recursively performs a deep copy in the relevant constructors both for purity of internal representation of JSON structures and for more desirable behavior in encoding to strings.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Sergey Beryozkin
            Reporter:
            Riley Patterson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: