#include <jsoncons/json_parser.hpp>A parse_error_handler is a simple function, a functor or a lambda expression that receive arguments
std::error_code and const ser_context&, and returns a bool. The parser will report all errors
through the parse_error_handler. If the visitor true, the parser
will make an attempt to recover from recoverable errors, if the error is non-recoverable of if the visitor
returns false, the parser will stop.
The jsoncons library comes with two parse_error_handler handlers:
-
default_json_parsing, which returnstrueif the error code indicates a comment, otherwisefalse -
strict_json_parsing, which always returnsfalse