#include <stdlib.h>
Go to the source code of this file.
|
#define | cJSON_False 0 |
|
#define | cJSON_True 1 |
|
#define | cJSON_NULL 2 |
|
#define | cJSON_Number 3 |
|
#define | cJSON_String 4 |
|
#define | cJSON_Array 5 |
|
#define | cJSON_Object 6 |
|
#define | cJSON_IsReference 256 |
|
#define | cJSON_AddNullToObject(object, name) cJSON_AddItemToObject(object, name, cJSON_CreateNull()) |
|
#define | cJSON_AddTrueToObject(object, name) cJSON_AddItemToObject(object, name, cJSON_CreateTrue()) |
|
#define | cJSON_AddFalseToObject(object, name) cJSON_AddItemToObject(object, name, cJSON_CreateFalse()) |
|
#define | cJSON_AddBoolToObject(object, name, b) cJSON_AddItemToObject(object, name, cJSON_CreateBool(b)) |
|
#define | cJSON_AddNumberToObject(object, name, n) cJSON_AddItemToObject(object, name, cJSON_CreateNumber(n)) |
|
#define | cJSON_AddStringToObject(object, name, s) cJSON_AddItemToObject(object, name, cJSON_CreateString(s)) |
|
#define | cJSON_SetIntValue(object, val) ((object)?(object)->valueint=(object)->valuedouble=(val):(val)) |
|
|
void | cJSON_InitHooks (cJSON_Hooks *hooks) |
|
cJSON * | cJSON_Parse (const char *value) |
|
char * | cJSON_Print (cJSON *item) |
|
char * | cJSON_PrintUnformatted (cJSON *item) |
|
void | cJSON_Delete (cJSON *c) |
|
int | cJSON_GetArraySize (cJSON *array) |
|
cJSON * | cJSON_GetArrayItem (cJSON *array, int item) |
|
cJSON * | cJSON_GetObjectItem (cJSON *object, const char *string) |
|
const char * | cJSON_GetErrorPtr (void) |
|
cJSON * | cJSON_CreateNull (void) |
|
cJSON * | cJSON_CreateTrue (void) |
|
cJSON * | cJSON_CreateFalse (void) |
|
cJSON * | cJSON_CreateBool (int b) |
|
cJSON * | cJSON_CreateNumber (double num) |
|
cJSON * | cJSON_CreateString (const char *string) |
|
cJSON * | cJSON_CreateArray (void) |
|
cJSON * | cJSON_CreateObject (void) |
|
cJSON * | cJSON_CreateIntArray (int *numbers, int count) |
|
cJSON * | cJSON_CreateFloatArray (float *numbers, int count) |
|
cJSON * | cJSON_CreateDoubleArray (double *numbers, int count) |
|
cJSON * | cJSON_CreateStringArray (const char **strings, int count) |
|
void | cJSON_AddItemToArray (cJSON *array, cJSON *item) |
|
void | cJSON_AddItemToObject (cJSON *object, const char *string, cJSON *item) |
|
void | cJSON_AddItemReferenceToArray (cJSON *array, cJSON *item) |
|
void | cJSON_AddItemReferenceToObject (cJSON *object, const char *string, cJSON *item) |
|
cJSON * | cJSON_DetachItemFromArray (cJSON *array, int which) |
|
void | cJSON_DeleteItemFromArray (cJSON *array, int which) |
|
cJSON * | cJSON_DetachItemFromObject (cJSON *object, const char *string) |
|
void | cJSON_DeleteItemFromObject (cJSON *object, const char *string) |
|
void | cJSON_ReplaceItemInArray (cJSON *array, int which, cJSON *newitem) |
|
void | cJSON_ReplaceItemInObject (cJSON *object, const char *string, cJSON *newitem) |
|
cJSON * | cJSON_Duplicate (cJSON *item, int recurse) |
|
cJSON * | cJSON_ParseWithOpts (const char *value, const char **return_parse_end, int require_null_terminated) |
|
#define cJSON_IsReference 256 |
#define cJSON_SetIntValue |
( |
|
object, |
|
|
|
val |
|
) |
| ((object)?(object)->valueint=(object)->valuedouble=(val):(val)) |
void cJSON_AddItemReferenceToArray |
( |
cJSON * |
array, |
|
|
cJSON * |
item |
|
) |
| |
void cJSON_AddItemReferenceToObject |
( |
cJSON * |
object, |
|
|
const char * |
string, |
|
|
cJSON * |
item |
|
) |
| |
void cJSON_AddItemToArray |
( |
cJSON * |
array, |
|
|
cJSON * |
item |
|
) |
| |
void cJSON_AddItemToObject |
( |
cJSON * |
object, |
|
|
const char * |
string, |
|
|
cJSON * |
item |
|
) |
| |
cJSON* cJSON_CreateArray |
( |
void |
| ) |
|
cJSON* cJSON_CreateBool |
( |
int |
b | ) |
|
cJSON* cJSON_CreateDoubleArray |
( |
double * |
numbers, |
|
|
int |
count |
|
) |
| |
cJSON* cJSON_CreateFalse |
( |
void |
| ) |
|
cJSON* cJSON_CreateFloatArray |
( |
float * |
numbers, |
|
|
int |
count |
|
) |
| |
cJSON* cJSON_CreateIntArray |
( |
int * |
numbers, |
|
|
int |
count |
|
) |
| |
cJSON* cJSON_CreateNull |
( |
void |
| ) |
|
cJSON* cJSON_CreateNumber |
( |
double |
num | ) |
|
cJSON* cJSON_CreateObject |
( |
void |
| ) |
|
cJSON* cJSON_CreateString |
( |
const char * |
string | ) |
|
cJSON* cJSON_CreateStringArray |
( |
const char ** |
strings, |
|
|
int |
count |
|
) |
| |
cJSON* cJSON_CreateTrue |
( |
void |
| ) |
|
void cJSON_Delete |
( |
cJSON * |
c | ) |
|
void cJSON_DeleteItemFromArray |
( |
cJSON * |
array, |
|
|
int |
which |
|
) |
| |
void cJSON_DeleteItemFromObject |
( |
cJSON * |
object, |
|
|
const char * |
string |
|
) |
| |
cJSON* cJSON_DetachItemFromArray |
( |
cJSON * |
array, |
|
|
int |
which |
|
) |
| |
cJSON* cJSON_DetachItemFromObject |
( |
cJSON * |
object, |
|
|
const char * |
string |
|
) |
| |
cJSON* cJSON_Duplicate |
( |
cJSON * |
item, |
|
|
int |
recurse |
|
) |
| |
cJSON* cJSON_GetArrayItem |
( |
cJSON * |
array, |
|
|
int |
item |
|
) |
| |
int cJSON_GetArraySize |
( |
cJSON * |
array | ) |
|
const char* cJSON_GetErrorPtr |
( |
void |
| ) |
|
cJSON* cJSON_GetObjectItem |
( |
cJSON * |
object, |
|
|
const char * |
string |
|
) |
| |
cJSON* cJSON_Parse |
( |
const char * |
value | ) |
|
cJSON* cJSON_ParseWithOpts |
( |
const char * |
value, |
|
|
const char ** |
return_parse_end, |
|
|
int |
require_null_terminated |
|
) |
| |
char* cJSON_Print |
( |
cJSON * |
item | ) |
|
char* cJSON_PrintUnformatted |
( |
cJSON * |
item | ) |
|
void cJSON_ReplaceItemInArray |
( |
cJSON * |
array, |
|
|
int |
which, |
|
|
cJSON * |
newitem |
|
) |
| |
void cJSON_ReplaceItemInObject |
( |
cJSON * |
object, |
|
|
const char * |
string, |
|
|
cJSON * |
newitem |
|
) |
| |
|