MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Object Introspection and Query

Modules

 Convenient Path Macros
 JSON object hierarchy path query convenience macros.
 
 Alternative Path Queries
 JSON object hierarchy path query methods.
 
 Set Primitive Object Values at Path
 Set (overwrite) primitive value at given path.
 
 Obsolete Path Queries
 Query JSON object hierarchy using key paths (obsolete)
 

Functions

int json_object_is_type (struct json_object *obj, enum json_type type)
 
enum json_type json_object_get_type (struct json_object *obj)
 
static void * json_object_path_get_leafobj_recurse (struct json_object *src, char *key_path, json_type jtype)
 
static struct json_objectjson_object_path_get_leafobj (struct json_object *obj, char const *key_path, json_type jtype)
 

Detailed Description

Function Documentation

int json_object_is_type ( struct json_object obj,
enum json_type  type 
)

Check if the json_object is of a given type

Parameters
objthe json_object instance
typeone of: json_type_null (i.e. obj == NULL), json_type_boolean, json_type_double, json_type_int, json_type_object, json_type_array, json_type_string,

Definition at line 204 of file json_object.c.

enum json_type json_object_get_type ( struct json_object obj)

Get the type of the json_object. See also json_type_to_name() to turn this into a string suitable, for instance, for logging.

Parameters
objthe json_object instance
Returns
type being one of: json_type_null (i.e. obj == NULL), json_type_boolean, json_type_double, json_type_int, json_type_object, json_type_array, json_type_string,

Definition at line 211 of file json_object.c.

static void* json_object_path_get_leafobj_recurse ( struct json_object src,
char *  key_path,
json_type  jtype 
)
static

Definition at line 1978 of file json_object.c.

static struct json_object* json_object_path_get_leafobj ( struct json_object obj,
char const *  key_path,
json_type  jtype 
)
static

Definition at line 2007 of file json_object.c.