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... | |
struct | json::omanip |
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. | |
void | json::indenter (std::ios_base &os, int spaces) |
omanip | json::spaces (int nspc) |
std::ostream & | json::indent (std::ostream &os) |
std::ostream & | json::tabs (std::ostream &os) |
std::ostream & | json::noindent (std::ostream &os) |
std::ostream & | json::operator<< (std::ostream &os, const node &n) |
Write a JSON object to a stream. | |
std::istream & | json::operator>> (std::istream &is, node &n) |
Read a JSON node from a 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.