Converts a JSON string to a glib.variant.VariantG value.
This function works exactly like funcJson.gvariant_deserialize, but takes a JSON encoded string instead.
The string is first converted to a json.node.Node using json.parser.Parser, and then json.global.gvariantDeserialize is called on the node.
The returned variant has a floating reference that will need to be sunk by the caller code.
A JSON data string
The length of json, or -1 if NUL-terminated
A valid glib.variant.VariantG type string
A newly created glib.variant.VariantGD compliant
Converts a JSON string to a glib.variant.VariantG value.
This function works exactly like funcJson.gvariant_deserialize, but takes a JSON encoded string instead.
The string is first converted to a json.node.Node using json.parser.Parser, and then json.global.gvariantDeserialize is called on the node.
The returned variant has a floating reference that will need to be sunk by the caller code.