existing_entry->v = val;
}
+int json_object_object_length(struct json_object *jso)
+{
+ return lh_table_length(jso->o.c_object);
+}
+
struct json_object* json_object_object_get(struct json_object* jso, const char *key)
{
struct json_object *result = NULL;
*/
extern struct lh_table* json_object_get_object(struct json_object *obj);
+extern int json_object_object_length(struct json_object* obj);
+
/** Add an object field to a json_object of type json_type_object
*
* The reference count will *not* be incremented. This is to make adding
return lh_table_delete_entry(t, e);
}
+int lh_table_length(struct lh_table *t)
+{
+ return t->count;
+}
*/
extern int lh_table_delete(struct lh_table *t, const void *k);
+extern int lh_table_length(struct lh_table *t);
void lh_abort(const char *msg, ...);
void lh_table_resize(struct lh_table *t, int new_size);