the given variant
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.
Parameters
variant | A #GVariant to convert |
length | the length of the returned string |
Returns
The JSON encoded string corresponding to