#include <json.h>
Definition at line 26 of file json.h.
◆ arrayt
◆ objectt
◆ kindt
Enumerator |
---|
J_STRING | |
J_NUMBER | |
J_OBJECT | |
J_ARRAY | |
J_TRUE | |
J_FALSE | |
J_NULL | |
Definition at line 33 of file json.h.
◆ 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() [5/5]
◆ clear()
void jsont::clear |
( |
void |
| ) |
|
|
inline |
◆ 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()
static jsont jsont::json_boolean |
( |
bool |
value | ) |
|
|
inlinestatic |
◆ make_array()
◆ make_object()
◆ operator[]()
const jsont& jsont::operator[] |
( |
const std::string & |
key | ) |
const |
|
inline |
◆ output()
void jsont::output |
( |
std::ostream & |
out | ) |
const |
|
inline |
◆ output_key()
void jsont::output_key |
( |
std::ostream & |
out, |
|
|
const std::string & |
key |
|
) |
| |
|
static |
◆ output_object()
void jsont::output_object |
( |
std::ostream & |
out, |
|
|
const objectt & |
object, |
|
|
unsigned |
indent |
|
) |
| |
|
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, |
|
|
unsigned |
indent |
|
) |
| 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()
void jsont::swap |
( |
jsont & |
other | ) |
|
◆ array
◆ kind
◆ null_json_object
const jsont jsont::null_json_object |
|
static |
◆ 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