serialize_gobject


Description:


[ Version ( deprecated = true , deprecated_since = "0.10" , replacement = "Json.gobject_to_data" ) ]
public string serialize_gobject (Object gobject, out size_t length)

Warning: serialize_gobject is deprecated since 0.10. Use Json.gobject_to_data.

Serializes a `GObject` instance into a JSON data stream.

Note:

Use [func@Json.gobject_to_data] instead

If the object implements the [iface@Json.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

the object to serialize

length

return value for the length of the buffer

Returns:

a JSON data stream representing the given object


Namespace: Json
Package: json-glib-1.0