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 |
since: 0.14 |
Reader |
since: 0.12 |
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. since: 1.2 |
Enumerations
NodeType |
Indicates the content of a node. |
Error Domains
ParserError |
Error codes for |
PathError |
Error codes for since: 0.14 |
ReaderError |
Error codes for since: 0.12 |
Callbacks
ArrayForeach |
The function to be passed to since: 0.8 |
BoxedDeserializeFunc |
Deserializes the contents of the passed since: 0.10 |
BoxedSerializeFunc |
Serializes the passed since: 0.10 |
ObjectForeach |
The function to be passed to since: 0.8 |
Functions
boxed_can_deserialize |
Checks whether it is possible to deserialize a since: 0.10 |
boxed_can_serialize |
Checks whether it is possible to serialize a since: 0.10 |
boxed_deserialize |
Deserializes the given since: 0.10 |
boxed_register_deserialize_func |
Registers a deserialization function for a since: 0.10 |
boxed_register_serialize_func |
Registers a serialization function for a since: 0.10 |
boxed_serialize |
Serializes a pointer to a since: 0.10 |
construct_gobject |
Deserializes a JSON data stream and creates an instance of the given type. deprecated: 0.10 since: 0.4 |
from_string |
Parses the given string and returns the corresponding JSON tree. since: 1.2 |
gobject_deserialize |
Creates a new since: 0.10 |
gobject_from_data |
Deserializes a JSON data stream and creates an instance of the given type. since: 0.10 |
gobject_serialize |
Creates a JSON tree representing the passed object instance. since: 0.10 |
gobject_to_data |
Serializes a since: 0.10 |
gvariant_deserialize |
Converts a JSON data structure to a since: 0.14 |
gvariant_deserialize_data |
Converts a JSON string to a since: 0.14 |
gvariant_serialize |
Converts since: 0.14 |
gvariant_serialize_data |
Converts since: 0.14 |
serialize_gobject |
Serializes a deprecated: 0.10 |
string_compare |
Check whether since: 1.2 |
string_equal |
Check whether since: 1.2 |
string_hash |
Calculate a hash value for the given since: 1.2 |
to_string |
Generates a stringified JSON representation of the contents of
the given since: 1.2 |
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 since: 0.10 |
NODE_HOLDS_ARRAY |
Evaluates to since: 0.10 |
NODE_HOLDS_NULL |
Evaluates to since: 0.10 |
NODE_HOLDS_OBJECT |
Evaluates to since: 0.10 |
NODE_HOLDS_VALUE |
Evaluates to since: 0.10 |
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 |
PARSER_MAX_RECURSION_DEPTH |
The maximum recursion depth for a JSON tree. |
VERSION_S |
The version of JSON-GLib, encoded as a string, useful for printing and concatenation. |