TypeScript API Documentation for JSON-GLIB
API Version: 1.0
Library Version: 1.10.8
Generated with TypeDoc via ts-for-gir v4.0.0-beta.40
Since 0.14
Converts a JSON string to a GLib.Variant value.
This function works exactly like Json.gvariant_deserialize, but takes a JSON encoded string instead.
The string is first converted to a Json.Node using Json.Parser, and then json_gvariant_deserialize is called on the node.
json_gvariant_deserialize
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
json
NUL
Optional
A valid GLib.Variant type string
A newly created GLib.VariantD compliant
0.14
Converts a JSON string to a GLib.Variant value.
This function works exactly like Json.gvariant_deserialize, but takes a JSON encoded string instead.
The string is first converted to a Json.Node using Json.Parser, and then
json_gvariant_deserializeis called on the node.The returned variant has a floating reference that will need to be sunk by the caller code.