AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
cJSON.h File Reference
#include <stddef.h>

Go to the source code of this file.

Classes

struct  cJSON
 
struct  cJSON_AS4CPP_Hooks
 

Macros

#define CJSON_AS4CPP_CDECL
 
#define CJSON_AS4CPP_STDCALL
 
#define CJSON_AS4CPP_PUBLIC(type)   type
 
#define CJSON_AS4CPP_VERSION_MAJOR   1
 
#define CJSON_AS4CPP_VERSION_MINOR   7
 
#define CJSON_AS4CPP_VERSION_PATCH   14
 
#define cJSON_AS4CPP_Invalid   (0)
 
#define cJSON_AS4CPP_False   (1 << 0)
 
#define cJSON_AS4CPP_True   (1 << 1)
 
#define cJSON_AS4CPP_NULL   (1 << 2)
 
#define cJSON_AS4CPP_Number   (1 << 3)
 
#define cJSON_AS4CPP_String   (1 << 4)
 
#define cJSON_AS4CPP_Array   (1 << 5)
 
#define cJSON_AS4CPP_Object   (1 << 6)
 
#define cJSON_AS4CPP_Raw   (1 << 7) /* raw json */
 
#define cJSON_AS4CPP_IsReference   256
 
#define cJSON_AS4CPP_StringIsConst   512
 
#define CJSON_AS4CPP_NESTING_LIMIT   1000
 
#define cJSON_AS4CPP_SetIntValue(object, number)   ((object) ? (object)->valueint = (object)->valuedouble = (number) : (number))
 
#define cJSON_AS4CPP_SetNumberValue(object, number)   ((object != NULL) ? cJSON_AS4CPP_SetNumberHelper(object, (double)number) : (number))
 
#define cJSON_AS4CPP_ArrayForEach(element, array)   for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)
 

Typedefs

typedef struct cJSON cJSON
 
typedef struct cJSON_AS4CPP_Hooks cJSON_AS4CPP_Hooks
 
typedef int cJSON_AS4CPP_bool
 

Functions

 CJSON_AS4CPP_PUBLIC (const char *) cJSON_AS4CPP_Version(void)
 
 CJSON_AS4CPP_PUBLIC (void) cJSON_AS4CPP_InitHooks(cJSON_AS4CPP_Hooks *hooks)
 
 CJSON_AS4CPP_PUBLIC (cJSON *) cJSON_AS4CPP_Parse(const char *value)
 
 CJSON_AS4CPP_PUBLIC (char *) cJSON_AS4CPP_Print(const cJSON *item)
 
 CJSON_AS4CPP_PUBLIC (cJSON_AS4CPP_bool) cJSON_AS4CPP_PrintPreallocated(cJSON *item
 
 CJSON_AS4CPP_PUBLIC (double) cJSON_AS4CPP_GetNumberValue(const cJSON *const item)
 
 CJSON_AS4CPP_PUBLIC (void *) cJSON_AS4CPP_malloc(size_t size)
 

Variables

size_t buffer_length
 
const char ** return_parse_end
 
const char cJSON_AS4CPP_bool require_null_terminated
 
int prebuffer
 
int cJSON_AS4CPP_bool fmt
 
char * buffer
 
char const int length
 
char const int const cJSON_AS4CPP_bool format
 
int index
 
const char *const string
 
int count
 
cJSONitem
 
int which
 
int cJSONnewitem
 
cJSON *const cJSONreplacement
 
cJSON_AS4CPP_bool recurse
 
const cJSON *const b
 
const cJSON *const const cJSON_AS4CPP_bool case_sensitive
 
const char *const name
 
const char *const const cJSON_AS4CPP_bool boolean
 
const char *const const double number
 
const char *const const char *const raw
 
const char * valuestring
 

Macro Definition Documentation

◆ cJSON_AS4CPP_Array

#define cJSON_AS4CPP_Array   (1 << 5)

Definition at line 106 of file cJSON.h.

◆ cJSON_AS4CPP_ArrayForEach

#define cJSON_AS4CPP_ArrayForEach (   element,
  array 
)    for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)

Definition at line 297 of file cJSON.h.

◆ CJSON_AS4CPP_CDECL

#define CJSON_AS4CPP_CDECL

Definition at line 82 of file cJSON.h.

◆ cJSON_AS4CPP_False

#define cJSON_AS4CPP_False   (1 << 0)

Definition at line 101 of file cJSON.h.

◆ cJSON_AS4CPP_Invalid

#define cJSON_AS4CPP_Invalid   (0)

Definition at line 100 of file cJSON.h.

◆ cJSON_AS4CPP_IsReference

#define cJSON_AS4CPP_IsReference   256

Definition at line 110 of file cJSON.h.

◆ CJSON_AS4CPP_NESTING_LIMIT

#define CJSON_AS4CPP_NESTING_LIMIT   1000

Definition at line 148 of file cJSON.h.

◆ cJSON_AS4CPP_NULL

#define cJSON_AS4CPP_NULL   (1 << 2)

Definition at line 103 of file cJSON.h.

◆ cJSON_AS4CPP_Number

#define cJSON_AS4CPP_Number   (1 << 3)

Definition at line 104 of file cJSON.h.

◆ cJSON_AS4CPP_Object

#define cJSON_AS4CPP_Object   (1 << 6)

Definition at line 107 of file cJSON.h.

◆ CJSON_AS4CPP_PUBLIC

#define CJSON_AS4CPP_PUBLIC (   type)    type

Definition at line 88 of file cJSON.h.

◆ cJSON_AS4CPP_Raw

#define cJSON_AS4CPP_Raw   (1 << 7) /* raw json */

Definition at line 108 of file cJSON.h.

◆ cJSON_AS4CPP_SetIntValue

#define cJSON_AS4CPP_SetIntValue (   object,
  number 
)    ((object) ? (object)->valueint = (object)->valuedouble = (number) : (number))

Definition at line 289 of file cJSON.h.

◆ cJSON_AS4CPP_SetNumberValue

#define cJSON_AS4CPP_SetNumberValue (   object,
  number 
)    ((object != NULL) ? cJSON_AS4CPP_SetNumberHelper(object, (double)number) : (number))

Definition at line 292 of file cJSON.h.

◆ CJSON_AS4CPP_STDCALL

#define CJSON_AS4CPP_STDCALL

Definition at line 83 of file cJSON.h.

◆ cJSON_AS4CPP_String

#define cJSON_AS4CPP_String   (1 << 4)

Definition at line 105 of file cJSON.h.

◆ cJSON_AS4CPP_StringIsConst

#define cJSON_AS4CPP_StringIsConst   512

Definition at line 111 of file cJSON.h.

◆ cJSON_AS4CPP_True

#define cJSON_AS4CPP_True   (1 << 1)

Definition at line 102 of file cJSON.h.

◆ CJSON_AS4CPP_VERSION_MAJOR

#define CJSON_AS4CPP_VERSION_MAJOR   1

Definition at line 93 of file cJSON.h.

◆ CJSON_AS4CPP_VERSION_MINOR

#define CJSON_AS4CPP_VERSION_MINOR   7

Definition at line 94 of file cJSON.h.

◆ CJSON_AS4CPP_VERSION_PATCH

#define CJSON_AS4CPP_VERSION_PATCH   14

Definition at line 95 of file cJSON.h.

Typedef Documentation

◆ cJSON

typedef struct cJSON cJSON

◆ cJSON_AS4CPP_bool

typedef int cJSON_AS4CPP_bool

Definition at line 143 of file cJSON.h.

◆ cJSON_AS4CPP_Hooks

Function Documentation

◆ CJSON_AS4CPP_PUBLIC() [1/7]

CJSON_AS4CPP_PUBLIC ( char *  ) const

◆ CJSON_AS4CPP_PUBLIC() [2/7]

CJSON_AS4CPP_PUBLIC ( cJSON ) const

◆ CJSON_AS4CPP_PUBLIC() [3/7]

CJSON_AS4CPP_PUBLIC ( cJSON_AS4CPP_bool  )

◆ CJSON_AS4CPP_PUBLIC() [4/7]

CJSON_AS4CPP_PUBLIC ( const char *  )

◆ CJSON_AS4CPP_PUBLIC() [5/7]

CJSON_AS4CPP_PUBLIC ( double  ) const

◆ CJSON_AS4CPP_PUBLIC() [6/7]

CJSON_AS4CPP_PUBLIC ( void *  )

◆ CJSON_AS4CPP_PUBLIC() [7/7]

CJSON_AS4CPP_PUBLIC ( void  )

Variable Documentation

◆ b

const cJSON* const b

Definition at line 269 of file cJSON.h.

◆ boolean

const char* const const cJSON_AS4CPP_bool boolean

Definition at line 281 of file cJSON.h.

◆ buffer

char* buffer

Definition at line 174 of file cJSON.h.

◆ buffer_length

size_t buffer_length

Definition at line 160 of file cJSON.h.

◆ case_sensitive

const cJSON* const const cJSON_AS4CPP_bool case_sensitive

Definition at line 269 of file cJSON.h.

◆ count

int count

Definition at line 230 of file cJSON.h.

◆ fmt

Definition at line 171 of file cJSON.h.

◆ format

char const int const cJSON_AS4CPP_bool format

Definition at line 174 of file cJSON.h.

◆ index

int index

Definition at line 181 of file cJSON.h.

◆ item

cJSON *const item

Definition at line 236 of file cJSON.h.

◆ length

char const int length

Definition at line 174 of file cJSON.h.

◆ name

const char *const name

Definition at line 278 of file cJSON.h.

◆ newitem

const char cJSON * newitem

Definition at line 256 of file cJSON.h.

◆ number

double number

Definition at line 282 of file cJSON.h.

◆ prebuffer

int prebuffer

Definition at line 171 of file cJSON.h.

◆ raw

const char* const const char* const raw

Definition at line 284 of file cJSON.h.

◆ recurse

Definition at line 263 of file cJSON.h.

◆ replacement

cJSON* const cJSON* replacement

Definition at line 257 of file cJSON.h.

◆ require_null_terminated

size_t const char cJSON_AS4CPP_bool require_null_terminated

Definition at line 163 of file cJSON.h.

◆ return_parse_end

size_t const char ** return_parse_end

Definition at line 163 of file cJSON.h.

◆ string

const char *const const char *const string

Definition at line 183 of file cJSON.h.

◆ valuestring

const char* valuestring

Definition at line 294 of file cJSON.h.

◆ which

int which

Definition at line 248 of file cJSON.h.