Serializable
Object Hierarchy:
Description:
[
CCode ( type_id =
"json_serializable_get_type ()" ) ]
public interface Serializable :
Object
`JsonSerializable` is an interface for controlling the serialization and deserialization of `GObject` classes.
Implementing this interface allows controlling how the class is going to be serialized or deserialized by [func@Json.construct_gobject] and [
func@Json.serialize_gobject], respectively.
Content:
Methods:
- public bool default_deserialize_property (string property_name, out Value value, ParamSpec pspec, Node property_node)
Calls the default implementation of the [vfunc@Json.
- public Node? default_serialize_property (string property_name, Value value, ParamSpec pspec)
Calls the default implementation of the [vfunc@Json.
- public virtual bool deserialize_property (string property_name, out Value value, ParamSpec pspec, Node property_node)
Asks a `JsonSerializable` implementation to deserialize the property
contained inside `property_node` and place its value into `value`.
- public virtual unowned ParamSpec? find_property (string name)
Calls the [vfunc@Json.
- public virtual Value get_property (ParamSpec pspec)
Calls the [vfunc@Json.
- public virtual (unowned ParamSpec)[] list_properties ()
Calls the [vfunc@Json.
- public virtual Node serialize_property (string property_name, Value value, ParamSpec pspec)
Asks a `JsonSerializable` implementation to serialize an object property
into a JSON node.
- public virtual void set_property (ParamSpec pspec, Value value)
Calls the [vfunc@Json.
Inherited Members:
All known members inherited from class GLib.Object