Serializes a gobject.object.ObjectG instance into a JSON data stream.
If the object implements the json.serializable.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.
the object to serialize
return value for the length of the buffer
a JSON data stream representing the given object
Deprecated: Use funcJson.gobject_to_data instead
Serializes a gobject.object.ObjectG instance into a JSON data stream.
If the object implements the json.serializable.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.