#include <jsonvalue.h>
Enumerator |
---|
NULL_VALUE |
|
STRING |
|
NUMBER |
|
JSON_OBJECT |
|
JSON_ARRAY |
|
BOOL_TRUE |
|
BOOL_FALSE |
|
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
JSONValue::JSONValue |
( |
uint8_t |
val | ) |
|
JSONValue::JSONValue |
( |
int8_t |
val | ) |
|
JSONValue::JSONValue |
( |
char |
val | ) |
|
JSONValue::JSONValue |
( |
bool |
val | ) |
|
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
JSONValue::JSONValue |
( |
uint16_t |
val | ) |
|
JSONValue::JSONValue |
( |
int16_t |
val | ) |
|
JSONValue::JSONValue |
( |
uint32_t |
val | ) |
|
JSONValue::JSONValue |
( |
int32_t |
val | ) |
|
JSONValue::JSONValue |
( |
uint64_t |
val | ) |
|
JSONValue::JSONValue |
( |
int64_t |
val | ) |
|
JSONValue::JSONValue |
( |
float |
val | ) |
|
JSONValue::JSONValue |
( |
double |
val | ) |
|
JSONValue::JSONValue |
( |
string |
val | ) |
|
JSONValue::JSONValue |
( |
Vector |
val | ) |
|
void JSONValue::set_null |
( |
| ) |
|
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
string |
val | ) |
|
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
float |
val | ) |
|
91 sprintf(val_str,
"%f", val);
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
double |
val | ) |
|
99 sprintf(val_str,
"%f", val);
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
uint64_t |
val | ) |
|
string to_unsigned(uint64_t value, uint16_t digits, bool zerofill)
Definition: stringlib.cpp:265
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
uint32_t |
val | ) |
|
string to_unsigned(uint64_t value, uint16_t digits, bool zerofill)
Definition: stringlib.cpp:265
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
uint16_t |
val | ) |
|
string to_unsigned(uint64_t value, uint16_t digits, bool zerofill)
Definition: stringlib.cpp:265
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
uint8_t |
val | ) |
|
string to_unsigned(uint64_t value, uint16_t digits, bool zerofill)
Definition: stringlib.cpp:265
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
int64_t |
val | ) |
|
string to_signed(int64_t value, uint16_t digits, bool zerofill)
Definition: stringlib.cpp:245
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
int32_t |
val | ) |
|
string to_signed(int64_t value, uint16_t digits, bool zerofill)
Definition: stringlib.cpp:245
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
int16_t |
val | ) |
|
string to_signed(int64_t value, uint16_t digits, bool zerofill)
Definition: stringlib.cpp:245
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
int8_t |
val | ) |
|
string to_signed(int64_t value, uint16_t digits, bool zerofill)
Definition: stringlib.cpp:245
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
Vector |
val | ) |
|
double y
Definition: vector.h:713
double z
Definition: vector.h:714
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
double x
Definition: vector.h:712
Definition: jsonobject.h:5
void addElement(string key, JSONValue value)
Definition: jsonobject.cpp:10
string to_json_string()
Definition: jsonobject.cpp:91
string to_double(double value, uint16_t precision)
Definition: stringlib.cpp:285
double y
Definition: vector.h:713
double z
Definition: vector.h:714
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
double x
Definition: vector.h:712
Definition: jsonobject.h:5
void addElement(string key, JSONValue value)
Definition: jsonobject.cpp:10
double w
Definition: vector.h:715
string to_json_string()
Definition: jsonobject.cpp:91
string to_double(double value, uint16_t precision)
Definition: stringlib.cpp:285
void JSONValue::set |
( |
char |
val | ) |
|
string to_string(char *value)
Definition: stringlib.cpp:220
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
string to_json_string()
Definition: jsonobject.cpp:91
170 for(
size_t i=0;
i < val.size();
i++){
171 jsonStr += val[
i].to_json_string();
172 if(
i < val.size()-1){
int i
Definition: rw_test.cpp:37
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
void JSONValue::set |
( |
bool |
val | ) |
|
string value_as_string
Definition: jsonvalue.h:76
JsonValueType type
Definition: jsonvalue.h:77
bool JSONValue::isNull |
( |
| ) |
|
JsonValueType type
Definition: jsonvalue.h:77
bool JSONValue::isString |
( |
| ) |
|
JsonValueType type
Definition: jsonvalue.h:77
bool JSONValue::isNumber |
( |
| ) |
|
JsonValueType type
Definition: jsonvalue.h:77
bool JSONValue::isObject |
( |
| ) |
|
JsonValueType type
Definition: jsonvalue.h:77
bool JSONValue::isArray |
( |
| ) |
|
JsonValueType type
Definition: jsonvalue.h:77
bool JSONValue::isBool |
( |
| ) |
|
JsonValueType type
Definition: jsonvalue.h:77
string JSONValue::to_json_string |
( |
| ) |
|
string value_as_string
Definition: jsonvalue.h:76
string JSONValue::value_as_string |
|
private |
The documentation for this class was generated from the following files: