Skip to content

Document return value of parse() when allow_exceptions == false and parsing fails #1405

Description

@ibc

The parse() function says:

allow_exceptions: whether to throw exceptions in case of a parse error (optional, true by default)

What happens if allow_exceptions is set to false and parsing fails (due to incorrect JSON string)? How is the returned basic_json? Is it something that can be checked with json::type() == json::value_t::null?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions