cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Json.h File Reference

Classes

struct  Json
 

Macros

#define Json_False   0
 
#define Json_True   1
 
#define Json_NULL   2
 
#define Json_Number   3
 
#define Json_String   4
 
#define Json_Array   5
 
#define Json_Object   6
 
#define SPINE_JSON_HAVE_PREV   0
 

Functions

JsonJson_create (const char *value)
 
void Json_dispose (Json *json)
 
JsonJson_getItem (Json *json, const char *string)
 
const char * Json_getString (Json *json, const char *name, const char *defaultValue)
 
float Json_getFloat (Json *json, const char *name, float defaultValue)
 
int Json_getInt (Json *json, const char *name, int defaultValue)
 
const char * Json_getError (void)
 

Macro Definition Documentation

#define Json_Array   5
#define Json_False   0
#define Json_NULL   2
#define Json_Number   3
#define Json_Object   6
#define Json_String   4
#define Json_True   1
#define SPINE_JSON_HAVE_PREV   0

Function Documentation

Json* Json_create ( const char *  value)
void Json_dispose ( Json json)
const char* Json_getError ( void  )
float Json_getFloat ( Json json,
const char *  name,
float  defaultValue 
)
int Json_getInt ( Json json,
const char *  name,
int  defaultValue 
)
Json* Json_getItem ( Json json,
const char *  string 
)
const char* Json_getString ( Json json,
const char *  name,
const char *  defaultValue 
)