Serializable
Object Hierarchy:
Json.Serializable
Json.Serializable
Json.Serializable
GLib.Object
GLib.Object
GLib.Object->Json.Serializable
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 [[email protected] _gobject]
and [[email protected] _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
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref