Virtual Method
JsonSerializableserialize_property
Declaration [src]
JsonNode*
serialize_property (
JsonSerializable* serializable,
const gchar* property_name,
const GValue* value,
GParamSpec* pspec
)
Description [src]
Asks a JsonSerializable
implementation to serialize an object
property into a JSON node.
Parameters
property_name
-
Type:
const gchar*
The name of the property to serialize.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. value
-
Type:
GValue
The value of the property to serialize.
The data is owned by the caller of the method. pspec
-
Type:
GParamSpec
A property description.
The data is owned by the caller of the method.
Return value
Type: JsonNode
A node containing the serialized property.
The caller of the method takes ownership of the returned data, and is responsible for freeing it. |