#include <stddef.h>
Go to the source code of this file.
◆ cJSON_Array
#define cJSON_Array (1 << 5) |
◆ cJSON_ArrayForEach
#define cJSON_ArrayForEach |
( |
|
element, |
|
|
|
array |
|
) |
| for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next) |
◆ CJSON_CDECL
◆ cJSON_False
#define cJSON_False (1 << 0) |
◆ cJSON_Invalid
#define cJSON_Invalid (0) |
◆ cJSON_IsReference
#define cJSON_IsReference 256 |
◆ CJSON_NESTING_LIMIT
#define CJSON_NESTING_LIMIT 1000 |
◆ cJSON_NULL
#define cJSON_NULL (1 << 2) |
◆ cJSON_Number
#define cJSON_Number (1 << 3) |
◆ cJSON_Object
#define cJSON_Object (1 << 6) |
◆ CJSON_PUBLIC
◆ cJSON_Raw
#define cJSON_Raw (1 << 7) /* raw json */ |
◆ cJSON_SetBoolValue
#define cJSON_SetBoolValue |
( |
|
object, |
|
|
|
boolValue |
|
) |
| |
◆ cJSON_SetIntValue
◆ cJSON_SetNumberValue
#define cJSON_SetNumberValue |
( |
|
object, |
|
|
|
number |
|
) |
| ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number)) |
◆ CJSON_STDCALL
◆ cJSON_String
#define cJSON_String (1 << 4) |
◆ cJSON_StringIsConst
#define cJSON_StringIsConst 512 |
◆ cJSON_True
#define cJSON_True (1 << 1) |
◆ CJSON_VERSION_MAJOR
#define CJSON_VERSION_MAJOR 1 |
◆ CJSON_VERSION_MINOR
#define CJSON_VERSION_MINOR 7 |
◆ CJSON_VERSION_PATCH
#define CJSON_VERSION_PATCH 15 |
◆ cJSON
◆ cJSON_bool
◆ cJSON_Hooks
◆ CJSON_PUBLIC() [1/7]
CJSON_PUBLIC |
( |
char * |
| ) |
const |
Definition at line 1255 of file cJSON.cpp.
1256{
1258}
static unsigned char * print(const cJSON *const item, cJSON_bool format, const internal_hooks *const hooks)
static internal_hooks global_hooks
◆ CJSON_PUBLIC() [2/7]
CJSON_PUBLIC |
( |
cJSON * |
| ) |
const |
Definition at line 1177 of file cJSON.cpp.
1178{
1179 return cJSON_ParseWithOpts(value, 0, 0);
1180}
◆ CJSON_PUBLIC() [3/7]
Definition at line 1833 of file cJSON.cpp.
1834{
1836 size_t size = 0;
1837
1839 {
1840 return 0;
1841 }
1842
1844
1846 {
1847 size++;
1849 }
1850
1851
1852
1853 return (int)size;
1854}
◆ CJSON_PUBLIC() [4/7]
CJSON_PUBLIC |
( |
const char * |
| ) |
|
Definition at line 125 of file cJSON.cpp.
126{
127 static char version[15];
129
130 return version;
131}
#define CJSON_VERSION_MINOR
#define CJSON_VERSION_PATCH
#define CJSON_VERSION_MAJOR
◆ CJSON_PUBLIC() [5/7]
CJSON_PUBLIC |
( |
double |
| ) |
const |
◆ CJSON_PUBLIC() [6/7]
◆ CJSON_PUBLIC() [7/7]
Definition at line 254 of file cJSON.cpp.
255{
258 {
261 {
263 }
265 {
267 }
269 {
271 }
274 }
275}
#define cJSON_StringIsConst
#define cJSON_IsReference
◆ boolean
◆ buffer
p buffer = (unsigned char*)buffer |
◆ buffer_length
Initial value:{
return cJSON_ParseWithLengthOpts(value, buffer_length, return_parse_end, require_null_terminated)
Definition at line 149 of file cJSON.h.
◆ case_sensitive
◆ count
Initial value:
Definition at line 216 of file cJSON.h.
◆ fmt
◆ format
Initial value:
Definition at line 163 of file cJSON.h.
◆ index
◆ item
Initial value:{
static cJSON_bool add_item_to_array(cJSON *array, cJSON *item)
Definition at line 222 of file cJSON.h.
◆ length
◆ name
Initial value:{
cJSON *true_item = cJSON_CreateTrue()
Definition at line 264 of file cJSON.h.
◆ newitem
Initial value:{
{
return false;
}
static cJSON * get_array_item(const cJSON *array, size_t index)
Definition at line 242 of file cJSON.h.
◆ number
const char *const const double number |
Initial value:{
const char *const const double number
Definition at line 268 of file cJSON.h.
◆ prebuffer
◆ raw
const char* const const char* const raw |
◆ recurse
◆ replacement
◆ require_null_terminated
size_t const char cJSON_bool require_null_terminated |
Initial value:
Definition at line 152 of file cJSON.h.
◆ return_parse_end
size_t const char ** return_parse_end |
◆ string
Initial value:{
static cJSON * get_object_item(const cJSON *const object, const char *const name, const cJSON_bool case_sensitive)
Definition at line 172 of file cJSON.h.
◆ valuestring
object valuestring = copy |
◆ which
Initial value:
Definition at line 234 of file cJSON.h.