pub fn gvariant_serialize_data(variant: &Variant) -> (GString, usize)Expand description
Converts @variant to its JSON encoded string representation.
This is a convenience function around [gvariant_serialize()][crate::gvariant_serialize()], to
obtain the JSON tree, and then Generator to stringify it.
§variant
A #GVariant to convert
§Returns
The JSON encoded string corresponding to the given variant
§length
the length of the returned string