summaryrefslogtreecommitdiff
path: root/json-glib/json-parser.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@openedhand.com>2007-10-01 12:57:46 +0100
committerEmmanuele Bassi <ebassi@openedhand.com>2007-10-01 12:57:46 +0100
commit88b11be5eec1da769328e93189bc2f3316c9cd0a (patch)
tree5ed59cecd38b1a51a8bbcf9964948d0e7e1fbc4b /json-glib/json-parser.h
parentc11ebd32f73a1e21d6097bf9eba8e12f7e35497a (diff)
downloadjson-glib-88b11be5eec1da769328e93189bc2f3316c9cd0a.tar.gz
Add JsonNode, a generic container for JSON types
This huge commit removes JsonData and adds JsonNode, the generic container for fundamental and complex data types extracted from a JSON stream. The contents of a JsonNode can be extracted from it in form of a GValue for fundamental types (integers, floats, strings, booleans) or in form of JsonObject and JsonArray objects. JsonObject and JsonArray now accept JsonNodes instead of GValues. The JsonParser object builds the data model tree when parsing a JSON stream; the tree can be recursed by getting the root node and walking it using the GValue API for the fundamental types and the objects/arrays API for complex types. The API has been updated and the tests now recurse through the generated data model tree.
Diffstat (limited to 'json-glib/json-parser.h')
-rw-r--r--json-glib/json-parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-glib/json-parser.h b/json-glib/json-parser.h
index 071b881..2b2152b 100644
--- a/json-glib/json-parser.h
+++ b/json-glib/json-parser.h
@@ -72,7 +72,7 @@ gboolean json_parser_load_from_data (JsonParser *parser,
const gchar *data,
gsize length,
GError **error);
-GList * json_parser_get_toplevels (JsonParser *parser);
+JsonNode * json_parser_get_root (JsonParser *parser);
G_END_DECLS