millijson
Lightweight JSON parser for C++
|
Header-only library for JSON parsing. More...
#include <memory>
#include <vector>
#include <cctype>
#include <cstdlib>
#include <string>
#include <stdexcept>
#include <cmath>
#include <unordered_map>
#include <unordered_set>
#include <cstdio>
Go to the source code of this file.
Classes | |
struct | millijson::Base |
Virtual base class for all JSON types. More... | |
struct | millijson::Number |
JSON number. More... | |
struct | millijson::String |
JSON string. More... | |
struct | millijson::Boolean |
JSON boolean. More... | |
struct | millijson::Nothing |
JSON null. More... | |
struct | millijson::Array |
JSON array. More... | |
struct | millijson::Object |
JSON object. More... | |
Namespaces | |
namespace | millijson |
A lightweight header-only JSON parser. | |
Enumerations | |
enum | millijson::Type { NUMBER , STRING , BOOLEAN , NOTHING , ARRAY , OBJECT } |
Functions | |
template<class Input > | |
std::shared_ptr< Base > | millijson::parse (Input &input) |
template<class Input > | |
Type | millijson::validate (Input &input) |
std::shared_ptr< Base > | millijson::parse_string (const char *ptr, size_t len) |
Type | millijson::validate_string (const char *ptr, size_t len) |
std::shared_ptr< Base > | millijson::parse_file (const char *path, size_t buffer_size=65536) |
Type | millijson::validate_file (const char *path, size_t buffer_size=65536) |
Header-only library for JSON parsing.