#include <jsonobject.h>
|
| JSONObject () |
|
| JSONObject (string key, JSONValue value) |
|
void | addElement (string key, JSONValue value) |
|
void | addElement (string key, JSONObject value) |
|
void | addElement (string key, JSONArray value) |
|
void | addElement (string key, string value) |
|
void | addElement (string key, double value) |
|
void | addElement (string key, int64_t value) |
|
void | addElement (string key, int32_t value) |
|
void | addElement (string key, int16_t value) |
|
void | addElement (string key, int8_t value) |
|
void | addElement (string key, uint64_t value) |
|
void | addElement (string key, uint32_t value) |
|
void | addElement (string key, uint16_t value) |
|
void | addElement (string key, uint8_t value) |
|
void | addElement (string key, bool value) |
|
string | to_json_string () |
|
string | to_json_object () |
|
void | get_json_string (string &jstring) |
|
void | clear () |
|
JSONObject::JSONObject |
( |
| ) |
|
JSONObject::JSONObject |
( |
string |
key, |
|
|
JSONValue |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
JSONValue |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
JSONObject |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
JSONArray |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
string |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
double |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
int64_t |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
int32_t |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
int16_t |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
int8_t |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
uint64_t |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
uint32_t |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
uint16_t |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
uint8_t |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
void JSONObject::addElement |
( |
string |
key, |
|
|
bool |
value |
|
) |
| |
vector< jsonTuple > contents
Definition: jsonobject.h:41
Definition: jsonvalue.h:13
Definition: jsonobject.h:7
string JSONObject::to_json_string |
( |
| ) |
|
vector< jsonTuple > contents
Definition: jsonobject.h:41
string to_json_object()
Definition: jsonobject.cpp:80
string JSONObject::to_json_object |
( |
| ) |
|
82 string json_string =
"";
84 json_string +=
"\"" +
contents[
i].key +
"\":";
85 json_string +=
contents[
i].value.to_json_string();
86 if(
i <
contents.size() - 1) { json_string +=
","; }
vector< jsonTuple > contents
Definition: jsonobject.h:41
int i
Definition: rw_test.cpp:37
void JSONObject::get_json_string |
( |
string & |
jstring | ) |
|
string to_json_string()
Definition: jsonobject.cpp:91
void JSONObject::clear |
( |
| ) |
|
vector< jsonTuple > contents
Definition: jsonobject.h:41
The documentation for this class was generated from the following files: