Valadoc | Vala | Tutorial | API-References | Markup

serialize_gobject


Description:

[ Deprecated ( since = "0.10" , replacement = "Json.gobject_to_data" ) ]
public string serialize_gobject (Object gobject, out size_t length)

Warning: serialize_gobject is deprecated. Use Json.gobject_to_data.

Serializes a Object into a JSON data stream. If gobject implements the Serializable interface, it will be asked to serizalize all its properties; otherwise, the default implementation will be use to translate the compatible types into JSON native types.

Parameters:

gobject a Object
length return value for the length of the buffer, or null

Returns:

a JSON data stream representing the passed Object

Namespace: Json
Package: json-glib-1.0