Skip to content

How to get position info or parser context with custom from_json() that may throw exceptions? #1508

Closed
@traceon

Description

@traceon

Sorry if the question is lame or was answered before (couldn't find anything similar in the issues history).

Is it possible to get a position info or, better, a typical json::exception with a context where the "parsing" failed, for any exceptions thrown inside my custom from_json() for third party classes that may throw errors on their from_string() builder functions?

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions