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.
Activity
Riley Patterson
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | JETTISON-106.patch [ 56237 ] |
Sergey Beryozkin
made changes -
| Fix Version/s | 1.4 [ 17350 ] |
Sergey Beryozkin
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Sergey Beryozkin [ sergey_beryozkin ] | |
| Fix Version/s | 1.3.1 [ 18239 ] | |
| Resolution | Fixed [ 1 ] |
Sergey Beryozkin
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
Sergey Beryozkin
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Fix Version/s | 1.4 [ 17350 ] | |
| Resolution | Fixed [ 1 ] |