Skip to content

Descriptive error for trailing comma in json file #581

@leok610

Description

@leok610

I realize that check-jsonschema is not a linter, but the generic error message about failing to parse a file as JSON is not helpful.

I didn't check yet what you're using internally to load the JSON into Python, but the json.load() method has an informative error message that could be passed on to the user at the CLI:

JSON Error: Illegal trailing comma before end of array: line 10 column 18 (char 234)

Is this implementation feasible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions