Fix json_object_get
This commit is contained in:
@@ -100,6 +100,7 @@ json_t *json_object_get(const json_t *json, const char *key)
|
||||
if(!json_is_object(json))
|
||||
return NULL;
|
||||
|
||||
object = json_to_object(json);
|
||||
return hashtable_get(&object->hashtable, key);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user