JSON

Inherits: Object

Helper class for parsing JSON data.

Description

Helper class for parsing JSON data. For usage example and other important hints, see JSONParseResult.

Methods

JSONParseResultparse ( String json )
Stringprint ( Variant value, String indent=”“, bool sort_keys=false )

Method Descriptions

Parses a JSON encoded string and returns a JSONParseResult containing the result.


Converts a Variant var to JSON text and returns the result. Useful for serializing data to store or send over the network.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.