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?
The
parse()function says:What happens if
allow_exceptionsis set to false and parsing fails (due to incorrect JSON string)? How is the returnedbasic_json? Is it something that can be checked withjson::type() == json::value_t::null?