| 94 | } |
| 95 | |
| 96 | static JSONProperty *json_object_get2(JSONObject *obj, const char *name) |
| 97 | { |
| 98 | JSONProperty *f; |
| 99 | int i; |
| 100 | for(i = 0; i < obj->len; i++) { |
| 101 | f = &obj->props[i]; |
| 102 | if (!strcmp(f->name.u.str->data, name)) |
| 103 | return f; |
| 104 | } |
| 105 | return NULL; |
| 106 | } |
| 107 | |
| 108 | JSONValue json_object_get(JSONValue val, const char *name) |
| 109 | { |
no outgoing calls
no test coverage detected