Lines Matching refs:json_object

71 	struct json_object *val;
81 typedef struct json_object json_object; typedef
88 typedef void (json_object_delete_fn)(struct json_object *jso, void *userdata);
93 typedef int (json_object_to_json_string_fn)(struct json_object *jso,
119 extern struct json_object* json_object_get(struct json_object *obj);
129 int json_object_put(struct json_object *obj);
143 extern int json_object_is_type(struct json_object *obj, enum json_type type);
159 extern enum json_type json_object_get_type(struct json_object *obj);
171 extern const char* json_object_to_json_string(struct json_object *obj);
179 extern const char* json_object_to_json_string_ext(struct json_object *obj, int
208 extern void json_object_set_serializer(json_object *jso,
246 extern struct json_object* json_object_new_object(void);
252 extern struct lh_table* json_object_get_object(struct json_object *obj);
257 extern int json_object_object_length(struct json_object* obj);
275 extern void json_object_object_add(struct json_object* obj, const char *key,
276 struct json_object *val);
295 THIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* o…
316 extern json_bool json_object_object_get_ex(struct json_object* obj,
318 struct json_object **value);
329 extern void json_object_object_del(struct json_object* obj, const char *key);
348 struct json_object *val __attribute__((__unused__)); \
352 val = (struct json_object*)entry ## key->v; \
361 struct json_object *val; \
367 val = (struct json_object*)entry ## key->v, \
379 …ad; (iter.entry ? (iter.key = (char*)iter.entry->k, iter.val = (struct json_object*)iter.entry->v,…
386 extern struct json_object* json_object_new_array(void);
392 extern struct array_list* json_object_get_array(struct json_object *obj);
398 extern int json_object_array_length(struct json_object *obj);
408 extern void json_object_array_sort(struct json_object *jso, int(*sort_fn)(const void *, const void …
419 extern int json_object_array_add(struct json_object *obj,
420 struct json_object *val);
437 extern int json_object_array_put_idx(struct json_object *obj, int idx,
438 struct json_object *val);
445 extern struct json_object* json_object_array_get_idx(struct json_object *obj,
454 extern struct json_object* json_object_new_boolean(json_bool b);
467 extern json_bool json_object_get_boolean(struct json_object *obj);
478 extern struct json_object* json_object_new_int(int32_t i);
485 extern struct json_object* json_object_new_int64(int64_t i);
502 extern int32_t json_object_get_int(struct json_object *obj);
517 extern int64_t json_object_get_int64(struct json_object *obj);
526 extern struct json_object* json_object_new_double(double d);
549 extern struct json_object* json_object_new_double_s(double d, const char *ds);
574 extern double json_object_get_double(struct json_object *obj);
586 extern struct json_object* json_object_new_string(const char *s);
588 extern struct json_object* json_object_new_string_len(const char *s, int len);
601 extern const char* json_object_get_string(struct json_object *obj);
611 extern int json_object_get_string_len(struct json_object *obj);