json_parser

Defined in header: <orcus/json_parser.hpp>

template<typename HandlerT>
class json_parser : public orcus::json::parser_base

Parser for JSON documents.

Template Parameters:

HandlerT – Hanlder type with member functions for event callbacks. Refer to json_handler.

Public Types

typedef HandlerT handler_type

Public Functions

json_parser(std::string_view content, handler_type &hdl)

Constructor.

Parameters:
  • content – string stream containing JSON string.

  • hdl – handler class instance.

void parse()

Call this method to start parsing.