MLIB
Loading...
Searching...
No Matches
json.cpp File Reference

Implementation of json::node class. More...

#include <mlib/mlib.h>
#include <istream>
#include <ostream>
#include <sstream>
#include <cstring>
#include <utf8/utf8.h>

Functions

mlib::errfacjson::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)
 
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.
 

Variables

mlib::errfac json::default_json_errors ("JSON Error")
 
mlib::errfacjson::json_errors = &default_json_errors
 
node json::null_node
 
int json::ostream_flags = ios_base::xalloc ()
 

Detailed Description

Implementation of json::node class.

(c) Mircea Neacsu 2022. All rights reserved.