MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / json_object_get

Function json_object_get

tinyemu/json.c:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108JSONValue json_object_get(JSONValue val, const char *name)
109{
110 JSONProperty *f;
111 JSONObject *obj;
112
113 if (val.type != JSON_OBJ)
114 return json_undefined_new();
115 obj = val.u.obj;
116 f = json_object_get2(obj, name);
117 if (!f)
118 return json_undefined_new();
119 return f->value;
120}
121
122int json_object_set(JSONValue val, const char *name, JSONValue prop_val)
123{

Callers 6

fs_dump_cache_loadFunction · 0.85
bf_init_onloadFunction · 0.85
vm_get_intFunction · 0.85
vm_get_int_optFunction · 0.85
vm_get_str2Function · 0.85

Calls 2

json_undefined_newFunction · 0.85
json_object_get2Function · 0.85

Tested by

no test coverage detected