Data Structures | Macros | Typedefs | Functions
cJSON.h File Reference
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  cJSON
 
struct  cJSON_Hooks
 

Macros

#define cJSON_AddBoolToObject(object, name, b)   cJSON_AddItemToObject(object, name, cJSON_CreateBool(b))
 
#define cJSON_AddFalseToObject(object, name)   cJSON_AddItemToObject(object, name, cJSON_CreateFalse())
 
#define cJSON_AddNullToObject(object, name)   cJSON_AddItemToObject(object, name, cJSON_CreateNull())
 
#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_AddTrueToObject(object, name)   cJSON_AddItemToObject(object, name, cJSON_CreateTrue())
 
#define cJSON_Array   5
 
#define cJSON_False   0
 
#define cJSON_IsReference   256
 
#define cJSON_NULL   2
 
#define cJSON_Number   3
 
#define cJSON_Object   6
 
#define cJSON_SetIntValue(object, val)   ((object)?(object)->valueint=(object)->valuedouble=(val):(val))
 
#define cJSON_SetNumberValue(object, val)   ((object)?(object)->valueint=(object)->valuedouble=(val):(val))
 
#define cJSON_String   4
 
#define cJSON_StringIsConst   512
 
#define cJSON_True   1
 

Typedefs

typedef struct cJSON cJSON
 
typedef struct cJSON_Hooks cJSON_Hooks
 

Functions

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)
 
void cJSON_AddItemToObjectCS (cJSON *object, const char *string, cJSON *item)
 
cJSONcJSON_CreateArray (void)
 
cJSONcJSON_CreateBool (int b)
 
cJSONcJSON_CreateDoubleArray (const double *numbers, int count)
 
cJSONcJSON_CreateFalse (void)
 
cJSONcJSON_CreateFloatArray (const float *numbers, int count)
 
cJSONcJSON_CreateIntArray (const int *numbers, int count)
 
cJSONcJSON_CreateNull (void)
 
cJSONcJSON_CreateNumber (double num)
 
cJSONcJSON_CreateObject (void)
 
cJSONcJSON_CreateString (const char *string)
 
cJSONcJSON_CreateStringArray (const char **strings, int count)
 
cJSONcJSON_CreateTrue (void)
 
void cJSON_Delete (cJSON *c)
 
void cJSON_DeleteItemFromArray (cJSON *array, int which)
 
void cJSON_DeleteItemFromObject (cJSON *object, const char *string)
 
cJSONcJSON_DetachItemFromArray (cJSON *array, int which)
 
cJSONcJSON_DetachItemFromObject (cJSON *object, const char *string)
 
cJSONcJSON_Duplicate (cJSON *item, int recurse)
 
cJSONcJSON_GetArrayItem (cJSON *array, int item)
 
int cJSON_GetArraySize (cJSON *array)
 
const char * cJSON_GetErrorPtr (void)
 
cJSONcJSON_GetObjectItem (cJSON *object, const char *string)
 
void cJSON_InitHooks (cJSON_Hooks *hooks)
 
void cJSON_InsertItemInArray (cJSON *array, int which, cJSON *newitem)
 
void cJSON_Minify (char *json)
 
cJSONcJSON_Parse (const char *value)
 
cJSONcJSON_ParseWithOpts (const char *value, const char **return_parse_end, int require_null_terminated)
 
char * cJSON_Print (cJSON *item)
 
char * cJSON_PrintBuffered (cJSON *item, int prebuffer, int fmt)
 
char * cJSON_PrintUnformatted (cJSON *item)
 
void cJSON_ReplaceItemInArray (cJSON *array, int which, cJSON *newitem)
 
void cJSON_ReplaceItemInObject (cJSON *object, const char *string, cJSON *newitem)
 

Macro Definition Documentation

#define cJSON_AddBoolToObject (   object,
  name,
 
)    cJSON_AddItemToObject(object, name, cJSON_CreateBool(b))
#define cJSON_AddFalseToObject (   object,
  name 
)    cJSON_AddItemToObject(object, name, cJSON_CreateFalse())
#define cJSON_AddNullToObject (   object,
  name 
)    cJSON_AddItemToObject(object, name, cJSON_CreateNull())
#define cJSON_AddNumberToObject (   object,
  name,
 
)    cJSON_AddItemToObject(object, name, cJSON_CreateNumber(n))
#define cJSON_AddStringToObject (   object,
  name,
 
)    cJSON_AddItemToObject(object, name, cJSON_CreateString(s))
#define cJSON_AddTrueToObject (   object,
  name 
)    cJSON_AddItemToObject(object, name, cJSON_CreateTrue())
#define cJSON_Array   5
#define cJSON_False   0
#define cJSON_IsReference   256
#define cJSON_NULL   2
#define cJSON_Number   3
#define cJSON_Object   6
#define cJSON_SetIntValue (   object,
  val 
)    ((object)?(object)->valueint=(object)->valuedouble=(val):(val))
#define cJSON_SetNumberValue (   object,
  val 
)    ((object)?(object)->valueint=(object)->valuedouble=(val):(val))
#define cJSON_String   4
#define cJSON_StringIsConst   512
#define cJSON_True   1

Typedef Documentation

typedef struct cJSON cJSON
typedef struct cJSON_Hooks cJSON_Hooks

Function Documentation

void cJSON_AddItemReferenceToArray ( cJSON array,
cJSON item 
)

+ Here is the call graph for this function:

void cJSON_AddItemReferenceToObject ( cJSON object,
const char *  string,
cJSON item 
)

+ Here is the call graph for this function:

void cJSON_AddItemToArray ( cJSON array,
cJSON item 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cJSON_AddItemToObject ( cJSON object,
const char *  string,
cJSON item 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cJSON_AddItemToObjectCS ( cJSON object,
const char *  string,
cJSON item 
)

+ Here is the call graph for this function:

cJSON* cJSON_CreateArray ( void  )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

cJSON* cJSON_CreateBool ( int  b)

+ Here is the call graph for this function:

cJSON* cJSON_CreateDoubleArray ( const double *  numbers,
int  count 
)

+ Here is the call graph for this function:

cJSON* cJSON_CreateFalse ( void  )

+ Here is the call graph for this function:

cJSON* cJSON_CreateFloatArray ( const float *  numbers,
int  count 
)

+ Here is the call graph for this function:

cJSON* cJSON_CreateIntArray ( const int *  numbers,
int  count 
)

+ Here is the call graph for this function:

cJSON* cJSON_CreateNull ( void  )

+ Here is the call graph for this function:

cJSON* cJSON_CreateNumber ( double  num)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

cJSON* cJSON_CreateObject ( void  )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

cJSON* cJSON_CreateString ( const char *  string)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

cJSON* cJSON_CreateStringArray ( const char **  strings,
int  count 
)

+ Here is the call graph for this function:

cJSON* cJSON_CreateTrue ( void  )

+ Here is the call graph for this function:

void cJSON_Delete ( cJSON c)

+ Here is the caller graph for this function:

void cJSON_DeleteItemFromArray ( cJSON array,
int  which 
)

+ Here is the call graph for this function:

void cJSON_DeleteItemFromObject ( cJSON object,
const char *  string 
)

+ Here is the call graph for this function:

cJSON* cJSON_DetachItemFromArray ( cJSON array,
int  which 
)

+ Here is the caller graph for this function:

cJSON* cJSON_DetachItemFromObject ( cJSON object,
const char *  string 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

cJSON* cJSON_Duplicate ( cJSON item,
int  recurse 
)

+ Here is the call graph for this function:

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 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cJSON_InitHooks ( cJSON_Hooks hooks)
void cJSON_InsertItemInArray ( cJSON array,
int  which,
cJSON newitem 
)

+ Here is the call graph for this function:

void cJSON_Minify ( char *  json)

+ Here is the caller graph for this function:

cJSON* cJSON_Parse ( const char *  value)

+ Here is the call graph for this function:

cJSON* cJSON_ParseWithOpts ( const char *  value,
const char **  return_parse_end,
int  require_null_terminated 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char* cJSON_Print ( cJSON item)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char* cJSON_PrintBuffered ( cJSON item,
int  prebuffer,
int  fmt 
)

+ Here is the call graph for this function:

char* cJSON_PrintUnformatted ( cJSON item)

+ Here is the call graph for this function:

void cJSON_ReplaceItemInArray ( cJSON array,
int  which,
cJSON newitem 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cJSON_ReplaceItemInObject ( cJSON object,
const char *  string,
cJSON newitem 
)

+ Here is the call graph for this function:


This documentation file has been automatically generated on Fri Oct 4 2019 03:46:57 by doxygen 1.8.8