SerializableT.defaultSerializeProperty

Calls the default implementation of the vfuncJson.Serializable.serialize_property virtual function.

This function can be used inside a custom implementation of the serialize_property() virtual function in lieu of calling the default implementation through [gobject.global.typeDefaultInterfacePeek]:

JsonSerializable *iface;
JsonNode *node;

iface = g_type_default_interface_peek (JSON_TYPE_SERIALIZABLE);
node = iface->serialize_property (serializable, property_name,
                                  value,
                                  pspec);

This function will return NULL if the property could not be serialized.

template SerializableT()
override
defaultSerializeProperty

Parameters

propertyName string

the name of the property to serialize

value gobject.value.Value

the value of the property to serialize

pspec gobject.param_spec.ParamSpec

a property description

Return Value

Type: json.node.Node

a node containing the serialized property