1 #ifndef _json_unparser_hpp_ 2 #define _json_unparser_hpp_ 40 std::ostream &
operator<<(std::ostream &stream,
const json &e);
46 void operator<<(std::string &s,
const json &e);
72 const char *space =
" ",
73 const char *newline =
"",
74 const char *indent =
" ",
77 #ifndef _ARGO_WINDOWS_ 86 const char *space =
" ",
87 const char *newline =
"",
88 const char *indent =
" ",
100 const char *space =
" ",
101 const char *newline =
"",
102 const char *indent =
" ",
113 const std::string &file_name,
114 const char *space =
" ",
115 const char *newline =
"",
116 const char *indent =
" ",
130 const char *space =
" ",
131 const char *newline =
"",
132 const char *indent =
" ",
142 void unparse(
const json &j,
int indent_level = 0);
146 void print_indent(
int indent_level);
147 void unparse_object(
const json &j,
int indent_level);
148 void unparse_array(
const json &j,
int indent_level);
152 const char *m_newline;
153 const char *m_indent;
Simple proxy for write operations on various types of stream.
#define NAMESPACE
You can change the namespace of the whole library by changing this value.
Class to unparse json instances into JSON messages.
Common defs needed everywhere and, as far as is possible, platform specific changes.
std::ostream & operator<<(std::ostream &stream, const json_exception &e)
All json things are represented by instances of this class.