Function
Jsongvariant_serialize_data
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 |
GVariant* |
A |
|
The data is owned by the caller of the function. | |
length |
gsize* |
The length of the returned string. |
|
The argument will be set by the function. | |
The argument can be NULL . | |
The called function takes ownership of the data, and is responsible for freeing it. |