Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8025134 Andre's conformance bugs with hg tip fa491b75d3e4
  3. JDK-8025147

Trailing comma is not allowed in JSONArray and JSONObject

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs
    • None
    • b110
    • generic
    • generic

    Description

      See ECMA section 15.12.1.2 The JSON Syntactic Grammar

      jjs> JSON.parse('[0,]')

      Expected: JSON SyntaxError
      Actual: No SyntaxError

      jjs> JSON.parse('{"a":0,}')

      Expected: JSON SyntaxError
      Actual: No SyntaxError

      Attachments

        Activity

          People

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: