gobjectToData

Serializes a gobject.object.ObjectG instance into a JSON data stream, iterating recursively over each property.

If the given object implements the json.serializable.Serializable interface, it will be asked to serialize all its properties; otherwise, the default implementation will be use to translate the compatible types into JSON native types.

string
gobjectToData

Parameters

gobject gobject.object.ObjectG

the object to serialize

length size_t

return value for the length of the buffer

Return Value

Type: string

a JSON data stream representing the given object