summaryrefslogtreecommitdiff
path: root/doc/json-gobject.md
blob: 2832cfa362069b6e6ccf99e09ac43798cd7d199e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Title: Serializing GObject Types

# Serializing GObject Types

JSON-GLib provides API for serializing and deserializing `GObject` instances
to and from JSON data streams.

Simple `GObject` classes can be (de)serialized into JSON objects, if the
properties have compatible types with the native JSON types (integers,
booleans, strings, string vectors). If the class to be (de)serialized has
complex data types for properties (like boxed types or other objects) then
the class should implement the provided [iface@Json.Serializable] interface
and its virtual functions.