38#if !defined(__WINDOWS__) && (defined(WIN32) || defined(WIN64) || defined(_MSC_VER) || defined(_WIN32))
62#define CJSON_CDECL __cdecl
63#define CJSON_STDCALL __stdcall
66#if !defined(CJSON_HIDE_SYMBOLS) && !defined(CJSON_IMPORT_SYMBOLS) && !defined(CJSON_EXPORT_SYMBOLS)
67#define CJSON_EXPORT_SYMBOLS
71#define CJSON_PUBLIC_cJSON_
73#if defined(CJSON_HIDE_SYMBOLS)
74#define CJSON_PUBLIC(type) type CJSON_STDCALL
75#elif defined(CJSON_EXPORT_SYMBOLS)
76#define CJSON_PUBLIC(type) __declspec(dllexport) type CJSON_STDCALL
77#elif defined(CJSON_IMPORT_SYMBOLS)
78#define CJSON_PUBLIC(type) __declspec(dllimport) type CJSON_STDCALL
84#if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(CJSON_API_VISIBILITY)
85#define CJSON_PUBLIC(type) __attribute__((visibility("default"))) type
87#define CJSON_PUBLIC(type) type
92#define CJSON_VERSION_MAJOR 1
93#define CJSON_VERSION_MINOR 7
94#define CJSON_VERSION_PATCH 13
99#define cJSON_Invalid (0)
100#define cJSON_False (1 << 0)
101#define cJSON_True (1 << 1)
102#define cJSON_NULL (1 << 2)
103#define cJSON_Number (1 << 3)
104#define cJSON_String (1 << 4)
105#define cJSON_Array (1 << 5)
106#define cJSON_Object (1 << 6)
107#define cJSON_Raw (1 << 7)
109#define cJSON_IsReference 256
110#define cJSON_StringIsConst 512
146#ifndef CJSON_NESTING_LIMIT
147#define CJSON_NESTING_LIMIT 1000
285#define cJSON_SetIntValue(object, number) ((object) ? (object)->valueint = (object)->valuedouble = (number) : (number))
288#define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number))
293#define cJSON_ArrayForEach(element, array) for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)
cJSON_bool cJSON_IsNumber(const cJSON *const item)
cJSON * cJSON_AddArrayToObject(cJSON *const object, const char *const name)
cJSON * cJSON_AddTrueToObject(cJSON *const object, const char *const name)
cJSON * cJSON_CreateNumber(double num)
cJSON * cJSON_CreateIntArray(const int *numbers, int count)
void cJSON_DeleteItemFromObject(cJSON *object, const char *string)
cJSON_bool cJSON_IsFalse(const cJSON *const item)
cJSON_bool cJSON_IsBool(const cJSON *const item)
cJSON_bool cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)
cJSON * cJSON_GetArrayItem(const cJSON *array, int index)
void cJSON_InitHooks(cJSON_Hooks *hooks)
cJSON * cJSON_CreateTrue(void)
cJSON_bool cJSON_IsObject(const cJSON *const item)
cJSON * cJSON_AddNullToObject(cJSON *const object, const char *const name)
cJSON * cJSON_AddStringToObject(cJSON *const object, const char *const name, const char *const string)
cJSON_bool cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)
cJSON * cJSON_AddNumberToObject(cJSON *const object, const char *const name, const double number)
void cJSON_DeleteItemFromArray(cJSON *array, int which)
cJSON * cJSON_CreateBool(cJSON_bool boolean)
cJSON * cJSON_AddRawToObject(cJSON *const object, const char *const name, const char *const raw)
cJSON * cJSON_DetachItemFromObject(cJSON *object, const char *string)
cJSON_bool cJSON_IsArray(const cJSON *const item)
char * cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt)
int cJSON_GetArraySize(const cJSON *array)
cJSON_bool cJSON_Compare(const cJSON *const a, const cJSON *const b, const cJSON_bool case_sensitive)
cJSON_bool cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)
cJSON_bool cJSON_ReplaceItemViaPointer(cJSON *const parent, cJSON *const item, cJSON *replacement)
cJSON_bool cJSON_IsInvalid(const cJSON *const item)
cJSON_bool cJSON_IsTrue(const cJSON *const item)
const char * cJSON_Version(void)
char * cJSON_SetValuestring(cJSON *object, const char *valuestring)
double cJSON_GetNumberValue(cJSON *item)
char * cJSON_PrintUnformatted(const cJSON *item)
void cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string)
cJSON * cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated)
cJSON * cJSON_ParseWithLength(const char *value, size_t buffer_length)
cJSON * cJSON_DetachItemFromArray(cJSON *array, int which)
#define CJSON_PUBLIC(type)
cJSON_bool cJSON_IsNull(const cJSON *const item)
cJSON * cJSON_CreateString(const char *string)
cJSON * cJSON_CreateNull(void)
cJSON * cJSON_CreateDoubleArray(const double *numbers, int count)
cJSON_bool cJSON_IsString(const cJSON *const item)
cJSON * cJSON_GetObjectItemCaseSensitive(const cJSON *const object, const char *const string)
cJSON * cJSON_CreateStringArray(const char *const *strings, int count)
char * cJSON_Print(const cJSON *item)
cJSON * cJSON_Parse(const char *value)
void cJSON_Delete(cJSON *item)
double cJSON_SetNumberHelper(cJSON *object, double number)
void * cJSON_malloc(size_t size)
cJSON_bool cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)
cJSON * cJSON_CreateObjectReference(const cJSON *child)
cJSON_bool cJSON_IsRaw(const cJSON *const item)
cJSON * cJSON_CreateArray(void)
cJSON * cJSON_AddBoolToObject(cJSON *const object, const char *const name, const cJSON_bool boolean)
const char * cJSON_GetErrorPtr(void)
cJSON * cJSON_AddObjectToObject(cJSON *const object, const char *const name)
cJSON_bool cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item)
cJSON_bool cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *newitem)
cJSON_bool cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
cJSON * cJSON_CreateFloatArray(const float *numbers, int count)
cJSON * cJSON_GetObjectItem(const cJSON *const object, const char *const string)
cJSON * cJSON_CreateRaw(const char *raw)
cJSON * cJSON_DetachItemViaPointer(cJSON *parent, cJSON *const item)
cJSON * cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)
cJSON * cJSON_CreateStringReference(const char *string)
char * cJSON_GetStringValue(cJSON *item)
cJSON * cJSON_CreateFalse(void)
cJSON * cJSON_CreateObject(void)
cJSON * cJSON_AddFalseToObject(cJSON *const object, const char *const name)
void cJSON_free(void *object)
cJSON * cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string)
cJSON_bool cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)
cJSON * cJSON_Duplicate(const cJSON *item, cJSON_bool recurse)
cJSON_bool cJSON_HasObjectItem(const cJSON *object, const char *string)
cJSON * cJSON_CreateArrayReference(const cJSON *child)
cJSON_bool cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format)
void cJSON_Minify(char *json)
cJSON_bool cJSON_AddItemToArray(cJSON *array, cJSON *item)
void(* free_fn)(void *ptr)
void *(* malloc_fn)(size_t sz)