Skip to main content

[json-processing-spec issues] [JIRA] Closed: (JSON_PROCESSING_SPEC-2) A reader.readObject() call that reads JsonObject stream with duplicate keys should throw exception

  • From: "jitu (JIRA)" < >
  • To:
  • Subject: [json-processing-spec issues] [JIRA] Closed: (JSON_PROCESSING_SPEC-2) A reader.readObject() call that reads JsonObject stream with duplicate keys should throw exception
  • Date: Wed, 12 Dec 2012 23:20:00 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/JSON_PROCESSING_SPEC-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jitu closed JSON_PROCESSING_SPEC-2.
-----------------------------------

      Assignee: jitu
    Resolution: Fixed

It just overwrites the mapping with new values(similar to Map)

> A reader.readObject() call that reads JsonObject stream with duplicate keys 
> should throw exception
> --------------------------------------------------------------------------------------------------
>
>                 Key: JSON_PROCESSING_SPEC-2
>                 URL: http://java.net/jira/browse/JSON_PROCESSING_SPEC-2
>             Project: json-processing-spec
>          Issue Type: Bug
>            Reporter: adf59
>            Assignee: jitu
>            Priority: Minor
>             Fix For: 1.0-pr
>
>
> reader = new JsonReader(new 
> StringReader("{\"foo\":\"bar\",\"foo\":\"foo\"}"));
> JsonValue jv = reader.readObject();
> It seems that the above readObject() should throw an exception if duplicate 
> keys exist within an object.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[json-processing-spec issues] [JIRA] Closed: (JSON_PROCESSING_SPEC-2) A reader.readObject() call that reads JsonObject stream with duplicate keys should throw exception

jitu (JIRA) 12/12/2012
 
 
Close
loading
Please Confirm
Close