Issue Details (XML | Word | Printable)

Key: JSON_PROCESSING_SPEC-12
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: jitu
Reporter: jitu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
json-processing-spec

JsonObjectBuilder should throw exception for duplicate keys

Created: 16/Oct/12 05:39 PM   Updated: 12/Dec/12 09:52 PM   Resolved: 12/Dec/12 09:52 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0-pr

Time Tracking:
Not Specified

Tags:
Participants: jitu


 Description  « Hide

JsonObjectBuilder should throw exception for duplicate keys while buiding JSON Objects



jitu added a comment - 03/Dec/12 08:18 PM

Should we throw exception or overwrite the existing mapping ?


jitu added a comment - 12/Dec/12 09:52 PM

If there already exists a mapping for key, it just replaces the old value with the new one(similar to Map).