Skip to content

add line/column number to syntax errors #69

@mark-pictor-csec

Description

@mark-pictor-csec

I can use other tools to track down an error, but it'd be nice if jd could provide the location itself.

compare jd's behavior with a bad file with that of jq:

$ jd defsck_p.json defsck_f.json           
2024/02/23 15:32:17 invalid character '(' in string escape code

$ jq <defsck_p.json 
parse error: Invalid escape at line 49883, column 1295

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