Namespace
Json – 1.0
JSON parser and generator
Dependencies
| GObject—2.0 | The base type system library |
| Browse documentation | |
| Gio—2.0 | GObject interfaces and objects |
| Browse documentation |
Classes
| Builder |
|
| Generator |
|
| Parser |
|
| Path |
|
| Reader |
|
Interfaces
| Serializable |
|
Structs
| Array |
|
| Node | A generic container of JSON data types. |
| Object |
|
| ObjectIter | An iterator object used to iterate over the members of a JSON object. |
Enumerations
| NodeType | Indicates the content of a node. |
Error Domains
| ParserError | Error codes for |
| PathError | Error codes for |
| ReaderError | Error codes for |
Callbacks
| ArrayForeach | The function to be passed to |
| BoxedDeserializeFunc | Deserializes the contents of the passed |
| BoxedSerializeFunc | Serializes the passed |
| ObjectForeach | The function to be passed to |
Functions
| boxed_can_deserialize | Checks whether it is possible to deserialize a |
| boxed_can_serialize | Checks whether it is possible to serialize a |
| boxed_deserialize | Deserializes the given |
| boxed_register_deserialize_func | Registers a deserialization function for a |
| boxed_register_serialize_func | Registers a serialization function for a |
| boxed_serialize | Serializes a pointer to a |
| construct_gobject | Deserializes a JSON data stream and creates an instance of the given type. |
| from_string | Parses the given string and returns the corresponding JSON tree. |
| gobject_deserialize | Creates a new |
| gobject_from_data | Deserializes a JSON data stream and creates an instance of the given type. |
| gobject_serialize | Creates a JSON tree representing the passed object instance. |
| gobject_to_data | Serializes a |
| gvariant_deserialize | Converts a JSON data structure to a |
| gvariant_deserialize_data | Converts a JSON string to a |
| gvariant_serialize | Converts |
| gvariant_serialize_data | Converts |
| serialize_gobject | Serializes a |
| string_compare | Check whether |
| string_equal | Check whether |
| string_hash | Calculate a hash value for the given |
| to_string | Generates a stringified JSON representation of the contents of
the given |
Function Macros
| CHECK_VERSION | Compile-time version checking. Evaluates to |
| ENCODE_VERSION | Encodes a JSON-GLib version in an hexadecimal number, useful for integer comparisons. |
| NODE_HOLDS | Evaluates to |
| NODE_HOLDS_ARRAY | Evaluates to |
| NODE_HOLDS_NULL | Evaluates to |
| NODE_HOLDS_OBJECT | Evaluates to |
| NODE_HOLDS_VALUE | Evaluates to |
| NODE_TYPE | Evaluates to the |
Constants
| MAJOR_VERSION | Json major version component (e.g. 1 if |
| MICRO_VERSION | Json micro version component (e.g. 3 if |
| MINOR_VERSION | Json minor version component (e.g. 2 if |
| VERSION_S | The version of JSON-GLib, encoded as a string, useful for printing and concatenation. |