JSON.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="JSON" inherits="Object" category="Core" version="3.1">
  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. <demos>
  12. </demos>
  13. <methods>
  14. <method name="parse">
  15. <return type="JSONParseResult">
  16. </return>
  17. <argument index="0" name="json" type="String">
  18. </argument>
  19. <description>
  20. Parses a JSON encoded string and returns a [JSONParseResult] containing the result.
  21. </description>
  22. </method>
  23. <method name="print">
  24. <return type="String">
  25. </return>
  26. <argument index="0" name="value" type="Variant">
  27. </argument>
  28. <argument index="1" name="indent" type="String" default="&quot;&quot;">
  29. </argument>
  30. <argument index="2" name="sort_keys" type="bool" default="false">
  31. </argument>
  32. <description>
  33. Converts a Variant var to JSON text and returns the result. Useful for serializing data to store or send over the network.
  34. </description>
  35. </method>
  36. </methods>
  37. <constants>
  38. </constants>
  39. </class>