json-processing-spec
  1. json-processing-spec
  2. JSON_PROCESSING_SPEC-2

A reader.readObject() call that reads JsonObject stream with duplicate keys should throw exception

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-pr
    • Labels:
      None

      Description

      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.

        Activity

        adf59 created issue -
        jitu made changes -
        Field Original Value New Value
        Fix Version/s 1.0-pr [ 16133 ]
        jitu made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee jitu [ jitu ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            jitu
            Reporter:
            adf59
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: