Fix json_object_get

This commit is contained in:
Petri Lehtinen 2009-05-12 22:15:48 +03:00
parent 86e1481cdb
commit 0b58486ec4

View File

@ -100,6 +100,7 @@ json_t *json_object_get(const json_t *json, const char *key)
if(!json_is_object(json)) if(!json_is_object(json))
return NULL; return NULL;
object = json_to_object(json);
return hashtable_get(&object->hashtable, key); return hashtable_get(&object->hashtable, key);
} }