|
libcmutils 0.6.5
Multi-platform C99 utility library
|
JSON value object. More...
Data Fields | |
| CMUTIL_Json | parent |
| CMJsonValueType(* | GetValueType )(const CMUTIL_JsonValue *jval) |
| Get the type of the JSON value. | |
| int64_t(* | GetLong )(const CMUTIL_JsonValue *jval) |
| Get the long integer value from the JSON value. | |
| double(* | GetDouble )(const CMUTIL_JsonValue *jval) |
| Get the double value from the JSON value. | |
| const CMUTIL_String *(* | GetString )(const CMUTIL_JsonValue *jval) |
| Get the string value from the JSON value. | |
| const char *(* | GetCString )(const CMUTIL_JsonValue *jval) |
| Get the C-style string value from the JSON value. | |
| CMBool(* | GetBoolean )(const CMUTIL_JsonValue *jval) |
| Get the boolean value from the JSON value. | |
| void(* | SetLong )(CMUTIL_JsonValue *jval, int64_t inval) |
| Set the long integer value of the JSON value. | |
| void(* | SetDouble )(CMUTIL_JsonValue *jval, double inval) |
| Set the double value of the JSON value. | |
| void(* | SetString )(CMUTIL_JsonValue *jval, const char *inval) |
| Set the string value of the JSON value. | |
| void(* | SetBoolean )(CMUTIL_JsonValue *jval, CMBool inval) |
| Set the boolean value of the JSON value. | |
| void(* | SetNull )(CMUTIL_JsonValue *jval) |
| Set the JSON value to null. | |
JSON value object.
Must be destroyed with CMUTIL_JsonDestroy.
| CMUTIL_Json CMUTIL_JsonValue::parent |
JSON base object.
| CMJsonValueType(* CMUTIL_JsonValue::GetValueType) (const CMUTIL_JsonValue *jval) |
Get the type of the JSON value.
This method retrieves the type of the JSON value, which can be one of the following: CMJsonValueLong, CMJsonValueDouble, CMJsonValueString, CMJsonValueBoolean, or CMJsonValueNull.
| jval | The JSON value object to get the type from. |
| int64_t(* CMUTIL_JsonValue::GetLong) (const CMUTIL_JsonValue *jval) |
Get the long integer value from the JSON value.
This method retrieves the long integer value stored in the JSON value object.
| jval | The JSON value object to get the long integer from. |
| double(* CMUTIL_JsonValue::GetDouble) (const CMUTIL_JsonValue *jval) |
Get the double value from the JSON value.
This method retrieves the double value stored in the JSON value object.
| jval | The JSON value object to get the double from. |
| const CMUTIL_String *(* CMUTIL_JsonValue::GetString) (const CMUTIL_JsonValue *jval) |
Get the string value from the JSON value.
This method retrieves the string value stored in the JSON value object.
| jval | The JSON value object to get the string from. |
| const char *(* CMUTIL_JsonValue::GetCString) (const CMUTIL_JsonValue *jval) |
Get the C-style string value from the JSON value.
This method retrieves the C-style string value stored in the JSON value object.
| jval | The JSON value object to get the C-style string from. |
| CMBool(* CMUTIL_JsonValue::GetBoolean) (const CMUTIL_JsonValue *jval) |
Get the boolean value from the JSON value.
This method retrieves the boolean value stored in the JSON value object.
| jval | The JSON value object to get the boolean from. |
| void(* CMUTIL_JsonValue::SetLong) (CMUTIL_JsonValue *jval, int64_t inval) |
Set the long integer value of the JSON value.
This method sets the long integer value of the JSON value object.
| jval | The JSON value object to set the long integer for. |
| inval | The long integer value to set. |
| void(* CMUTIL_JsonValue::SetDouble) (CMUTIL_JsonValue *jval, double inval) |
Set the double value of the JSON value.
This method sets the double value of the JSON value object.
| jval | The JSON value object to set the double for. |
| inval | The double value to set. |
| void(* CMUTIL_JsonValue::SetString) (CMUTIL_JsonValue *jval, const char *inval) |
Set the string value of the JSON value.
This method sets the string value of the JSON value object.
| jval | The JSON value object to set the string for. |
| inval | The string value to set. |
| void(* CMUTIL_JsonValue::SetBoolean) (CMUTIL_JsonValue *jval, CMBool inval) |
Set the boolean value of the JSON value.
This method sets the boolean value of the JSON value object.
| jval | The JSON value object to set the boolean for. |
| inval | The boolean value to set. |
| void(* CMUTIL_JsonValue::SetNull) (CMUTIL_JsonValue *jval) |
Set the JSON value to null.
This method sets the JSON value object to represent a null value.
| jval | The JSON value object to set to null. |