MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Set Primitive Object Values at Path

Set (overwrite) primitive value at given path. More...

Functions

json_bool json_object_path_set_boolean (struct json_object *obj, char const *key_path, json_bool val)
 
json_bool json_object_path_set_enum_choice_val (struct json_object *obj, char const *key_path, int64_t val)
 
json_bool json_object_path_set_enum_choice_name (struct json_object *obj, char const *key_path, char const *val)
 
json_bool json_object_path_set_int (struct json_object *obj, char const *key_path, int32_t val)
 
json_bool json_object_path_set_int64 (struct json_object *obj, char const *key_path, int64_t val)
 
json_bool json_object_path_set_double (struct json_object *obj, char const *key_path, double val)
 
json_bool json_object_path_set_string (struct json_object *obj, char const *key_path, char const *val)
 

Detailed Description

Set (overwrite) primitive value at given path.

In all these methods, if an object does not exist at the given path or if its type does not match the type for the given method, the object is unchanged and the return value is JSON_C_FALSE. Otherwise, the value is changed and the return value is JSON_C_TRUE.

Function Documentation

json_bool json_object_path_set_boolean ( struct json_object obj,
char const *  key_path,
json_bool  val 
)

Definition at line 2025 of file json_object.c.

json_bool json_object_path_set_enum_choice_val ( struct json_object obj,
char const *  key_path,
int64_t  val 
)

Definition at line 2032 of file json_object.c.

json_bool json_object_path_set_enum_choice_name ( struct json_object obj,
char const *  key_path,
char const *  val 
)

Definition at line 2039 of file json_object.c.

json_bool json_object_path_set_int ( struct json_object obj,
char const *  key_path,
int32_t  val 
)

Definition at line 2046 of file json_object.c.

json_bool json_object_path_set_int64 ( struct json_object obj,
char const *  key_path,
int64_t  val 
)

Definition at line 2053 of file json_object.c.

json_bool json_object_path_set_double ( struct json_object obj,
char const *  key_path,
double  val 
)

Definition at line 2060 of file json_object.c.

json_bool json_object_path_set_string ( struct json_object obj,
char const *  key_path,
char const *  val 
)

Definition at line 2067 of file json_object.c.