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 const gchar*
 

The name of the property to serialize.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
value const GValue*
 

The value of the property to serialize.

 The data is owned by the caller of the function.
pspec GParamSpec*
 

A property description.

 The data is owned by the caller of the function.

Return value

Returns: JsonNode
 

A node containing the serialized property.

 The caller of the function takes ownership of the data, and is responsible for freeing it.