json_reader

Daniel Parker
jsoncons::json_reader

typedef basic_json_reader<char> json_reader
#include "jsoncons/json_reader.hpp"

Constructors

json_reader(std::istream& is,
            json_input_handler& handler,
            error_handler& err_handler)

Constructs a json_reader that is associated with an input stream
is of JSON text, a json_input_handler handler that receives
notification of JSON events, and the specified error_handler.

json_reader(std::istream& is,
            json_input_handler& handler)

Constructs a json_reader that is associated with an input stream
is of JSON text, a json_input_handler handler that receives
notification of JSON events, and a default_error_handler

Member functions

bool eof() const

Returns true when there is no more data to be read from the stream, false otherwise

void read()

Reports JSON events to a json_input_handler handler, such as a json_deserializer.

size_t buffer_capacity() const

void buffer_capacity(size_t buffer_capacity)

Related

Documentation: Home
Documentation: Transforming JSON with filters
Documentation: default_error_handler
Documentation: error_handler
Documentation: json_deserializer
Documentation: json_input_handler
Documentation: wjson_reader