Warning: serialize_gobject is deprecated since 0.10. Use Json.gobject_to_data.
Serializes a `GObject` instance into a JSON data stream.
Use [[email protected]_to_data] instead
If the object implements the [[email protected]] 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.
gobject |
the object to serialize |
length |
return value for the length of the buffer |
a JSON data stream representing the given object |