Skip to content

Accessing file location from Json::Value #618

Open
@davidzchen

Description

@davidzchen

For projects using jsoncpp to parse JSON configuration files, it would be useful to be able to obtain the actual file location (i.e. line, column) of a given JSON value. This way, it would be possible to print the line and column when reporting config validation errors, which would make such error messages more user/developer friendly.

If adding this functionality to the jsoncpp API is not desirable, is there an API to extend the parser to add such a feature?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions