MLIB
|
Definition of json::node class. More...
#include <functional>
#include <map>
#include <memory>
#include <mlib/errorcode.h>
#include <iomanip>
#include <string>
#include <vector>
Go to the source code of this file.
Data Structures | |
class | json::node |
Representation of a JSON node. More... | |
class | json::node::iterator_type< C_ > |
node iterator More... | |
Enumerations | |
enum class | json::type { null , object , array , numeric , string , boolean } |
JSON node types. | |
Functions | |
mlib::errfac & | json::Errors () |
Return error facility used for JSON errors. | |
void | json::Errors (mlib::errfac &facility) |
Set error facility for JSON errors. | |
std::ostream & | json::operator<< (std::ostream &os, const node &n) |
Insertion operator serializes a JSON node to an output stream. | |
std::istream & | json::operator>> (std::istream &is, node &n) |
Extraction operator retrieves a JSON node from an input stream. | |
template<typename T> | |
void | json::to_json (node &n, const std::vector< T > &vec) |
Assign array value to a node. | |
Definition of json::node class.
(c) Mircea Neacsu 2022. All rights reserved.
std::ostream & json::operator<< | ( | std::ostream & | os, |
const node & | n ) |
Insertion operator serializes a JSON node to an output stream.
Write a JSON object to a stream.
std::istream & json::operator>> | ( | std::istream & | is, |
node & | n ) |
Extraction operator retrieves a JSON node from an input stream.
Read a JSON node from a stream.