:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the JSON.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_JSON: JSON ==== **Inherits:** :ref:`Object` **Category:** Core Brief Description ----------------- Helper class for parsing JSON data. Methods ------- +-----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`JSONParseResult` | :ref:`parse` **(** :ref:`String` json **)** | +-----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`print` **(** :ref:`Variant` value, :ref:`String` indent="", :ref:`bool` sort_keys=false **)** | +-----------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Description ----------- Helper class for parsing JSON data. For usage example and other important hints, see :ref:`JSONParseResult`. Method Descriptions ------------------- .. _class_JSON_method_parse: - :ref:`JSONParseResult` **parse** **(** :ref:`String` json **)** Parses a JSON encoded string and returns a :ref:`JSONParseResult` containing the result. ---- .. _class_JSON_method_print: - :ref:`String` **print** **(** :ref:`Variant` value, :ref:`String` indent="", :ref:`bool` sort_keys=false **)** Converts a Variant var to JSON text and returns the result. Useful for serializing data to store or send over the network.