Skip to content

Properly populate JSONDecodeError & UnicodeDecodeError #46

Description

@TkTech

We currently raise a ValueError instead of JSONDecodeError (which is a ValueError subclass) in some cases where JSONDecodeError would be more appropriate. This is because upstream simdjson does not report errors with enough granularity to populate lineno and colno (https://docs.python.org/3/library/json.html#json.JSONDecodeError)

Might be viable to return 0 and 0 for now?

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

    blockedBlocked by external projects (toolchains, OS issues, etc)bugSomething isn't workingupstream change requiredThis issue requires changes in the simdjson library

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions