Skip to content

Disable trailing commas #269

@erosb

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.

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