gvariantSerialize

fnjson.node.Node gvariantSerialize(glib.variant.Variant variant)

Converts variant to a JSON tree.

Parameters

variantA [glib.variant.Variant] to convert

Returns

the root of the JSON data structure

obtained from variant