Explorar o código

Improved GDScript parse_json() doc about numerical values conversion.

(cherry picked from commit 76e6b2d33bb2c16ce9fd142baca3d28a0a6e04b6)
ducdetronquito %!s(int64=8) %!d(string=hai) anos
pai
achega
9060a18639
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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">