JSON.xml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="JSON" inherits="Object" category="Core" version="3.1.2">
  3. <brief_description>
  4. Helper class for parsing JSON data.
  5. </brief_description>
  6. <description>
  7. Helper class for parsing JSON data. For usage example and other important hints, see [JSONParseResult].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="parse">
  13. <return type="JSONParseResult">
  14. </return>
  15. <argument index="0" name="json" type="String">
  16. </argument>
  17. <description>
  18. Parses a JSON encoded string and returns a [JSONParseResult] containing the result.
  19. </description>
  20. </method>
  21. <method name="print">
  22. <return type="String">
  23. </return>
  24. <argument index="0" name="value" type="Variant">
  25. </argument>
  26. <argument index="1" name="indent" type="String" default="&quot;&quot;">
  27. </argument>
  28. <argument index="2" name="sort_keys" type="bool" default="false">
  29. </argument>
  30. <description>
  31. Converts a Variant var to JSON text and returns the result. Useful for serializing data to store or send over the network.
  32. </description>
  33. </method>
  34. </methods>
  35. <constants>
  36. </constants>
  37. </class>