Loading...
Searching...
No Matches
#include <json.h>
+ Inheritance diagram for jsont:
+ Collaboration diagram for jsont:
Recursive printing of the json object.
Static Public Member Functions
Basic handling of the printing of a JSON object.
Protected Member Functions
Static Protected Member Functions
Detailed Description
Member Typedef Documentation
◆ arrayt
◆ objectt
Member Enumeration Documentation
◆ kindt
| Enumerator |
|---|
| J_STRING |
| J_NUMBER |
| J_OBJECT |
| J_ARRAY |
| J_TRUE |
| J_FALSE |
| J_NULL |
Definition at line 33 of file json.h.
Constructor & Destructor Documentation
◆ jsont() [1/5]
◆ jsont() [2/5]
jsont::jsont
(
kindt
_kind )
inlineexplicitprotected |
◆ jsont() [3/5]
jsont::jsont
(
kindt
_kind,
std::string
_value
)
inlineprotected |
◆ jsont() [4/5]
jsont::jsont
(
kindt
_kind,
)
inlineprotected |
◆ jsont() [5/5]
jsont::jsont
(
kindt
_kind,
)
inlineprotected |
Member Function Documentation
◆ clear()
◆ escape_string()
void jsont::escape_string
(
const std::string &
src,
std::ostream &
out
)
staticprotected |
◆ is_array()
bool jsont::is_array
(
)
const
inline |
◆ is_boolean()
bool jsont::is_boolean
(
)
const
inline |
◆ is_false()
bool jsont::is_false
(
)
const
inline |
◆ is_null()
bool jsont::is_null
(
)
const
inline |
◆ is_number()
bool jsont::is_number
(
)
const
inline |
◆ is_object()
bool jsont::is_object
(
)
const
inline |
◆ is_string()
bool jsont::is_string
(
)
const
inline |
◆ is_true()
bool jsont::is_true
(
)
const
inline |
◆ json_boolean()
◆ make_array()
◆ make_object()
◆ operator[]()
◆ output()
void jsont::output
(
std::ostream &
out )
const
inline |
◆ output_key()
void jsont::output_key
(
std::ostream &
out,
)
static |
◆ output_object()
void jsont::output_object
(
std::ostream &
out,
)
static |
Basic handling of the printing of a JSON object.
Dispatches to output_rec for most of the hard work.
- Parameters
-
out The stream that the JSON object is to be printed to.
object The JSON object.
indent The indentation level.
Definition at line 132 of file json.cpp.
◆ output_rec()
void jsont::output_rec
(
std::ostream &
out,
)
const
Recursive printing of the json object.
- Parameters
-
out The stream object to have the json printed to.
indent The indentation level.
Definition at line 59 of file json.cpp.
◆ swap()
Member Data Documentation
◆ array
◆ kind
◆ null_json_object
◆ object
◆ value
The documentation for this class was generated from the following files:
- /home/runner/work/cbmc/cbmc/src/util/json.h
- /home/runner/work/cbmc/cbmc/src/util/json.cpp