Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.3.1
-
Labels:None
-
Number of attachments :
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.