Fix json_object_get
authorPetri Lehtinen <petri@digip.org>
Tue, 12 May 2009 19:15:48 +0000 (22:15 +0300)
committerPetri Lehtinen <petri@digip.org>
Tue, 12 May 2009 19:15:48 +0000 (22:15 +0300)
src/value.c

index 514faac..ea539ff 100644 (file)
@@ -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);
 }