7#if !defined(TETENGO_JSON_JSONPARSER_HPP)
8#define TETENGO_JSON_JSONPARSER_HPP
13#include <boost/core/noncopyable.hpp>
51 std::unique_ptr<reader>&& p_reader,
95 const std::unique_ptr<impl> m_p_impl;
An element.
Definition element.hpp:22
A JSON parser.
Definition json_parser.hpp:28
const element & peek() const
Returns the current element.
bool has_next() const
Returns true when the next element exists.
static std::size_t default_buffer_capacity()
Returns the default buffer capacity.
json_parser(std::unique_ptr< reader > &&p_reader, std::size_t buffer_capacity=default_buffer_capacity())
Creates a JSON parser.
void next()
Moves to the next element.
~json_parser()
Destroys the JSON parser.