summaryrefslogtreecommitdiff
path: root/json-glib/json-node.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add licensing informations to the source codeEmmanuele Bassi2007-10-011-8/+44
|
* Add API reference for JSON-GLibEmmanuele Bassi2007-10-011-1/+1
| | | | | Use gtk-doc to build the various bits and pieces of the API reference for JSON-GLib.
* Add JsonNode, a generic container for JSON typesEmmanuele Bassi2007-10-011-0/+269
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.