Skip to content

Use diagnostic positions in exceptions #4561

@nlohmann

Description

@nlohmann

We recently merged #4517 which added a macro JSON_DIAGNOSTIC_POSITIONS that, when defined, adds two std::size_t members to JSON values indicating the position of the first and last byte of this element in the input text. We should use this information to provide better diagnostic messages in exceptions.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions