Răsfoiți Sursa

Improved GDScript parse_json() doc about numerical values conversion.

(cherry picked from commit 76e6b2d33bb2c16ce9fd142baca3d28a0a6e04b6)
ducdetronquito 8 ani în urmă
părinte
comite
9060a18639
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      doc/base/classes.xml

+ 2 - 1
doc/base/classes.xml

@@ -10939,7 +10939,8 @@
 			<argument index="0" name="json" type="String">
 			</argument>
 			<description>
-				Parse json text to the dictionary. Return OK when successed or the error code when failed.
+				Parse JSON text to the dictionary. Return OK when successed or the error code when failed.
+				Be aware that the JSON specification does not define integer or float types, but only a number type. Therefore, parsing a JSON text will convert every numerical values to [float] types.
 			</description>
 		</method>
 		<method name="size">