Skip to content

Disable trailing commas #269

Description

@erosb

Currently the parser permits trailing commas after the last key-value pair of an object. For example the following statement: new JSONObject("{\"a\":1,}"); doesn't throw any exceptions. As far as I know trailing commas are not permitted in json.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions