Function
Jsongvariant_serialize_data
since: 0.14
Declaration [src]
gchar*
json_gvariant_serialize_data (
GVariant* variant,
gsize* length
)
Description [src]
Converts variant
to its JSON encoded string representation.
This is a convenience function around json_gvariant_serialize()
, to
obtain the JSON tree, and then JsonGenerator
to stringify it.
Available since: 0.14
Parameters
variant
-
Type:
GVariant
A
GVariant
to convert.The data is owned by the caller of the function. length
-
Type:
gsize*
The length of the returned string.
The argument will be set by the function. The argument can be NULL
.