Converts variant to its JSON encoded string representation.
This is a convenience function around [func@Json.gvariant_serialize], to obtain the JSON tree, and then [class@Json.Generator] to stringify it.
| variant |
A Variant to convert |
| length |
the length of the returned string |
|
The JSON encoded string corresponding to the given variant |