gvariantSerializeData

Converts variant to its JSON encoded string representation.

This is a convenience function around funcJson.gvariant_serialize, to obtain the JSON tree, and then json.generator.Generator to stringify it.

string
gvariantSerializeData

Parameters

variant glib.variant.VariantG

A #GVariant to convert

length size_t

the length of the returned string

Return Value

Type: string

The JSON encoded string corresponding to the given variant