gobjectSerialize

fnjson.node.Node gobjectSerialize(gobject.object.ObjectWrap gobject)

Creates a JSON tree representing the passed object instance.

Each member of the returned JSON object will map to a property of the object type.

The returned JSON tree will be returned as a json.node.Node with a type of json.types.NodeType.Object.

Parameters

gobjectthe object to serialize

Returns

the newly created JSON tree