Преглед на файлове

Merge pull request #9528 from ducdetronquito/dictionary-parsejson-doc

Improved parse_json() doc about numerical values conversion.

[ci skip]
Rémi Verschelde преди 8 години
родител
ревизия
2d95c510fc
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      doc/base/classes.xml

+ 2 - 1
doc/base/classes.xml

@@ -388,7 +388,8 @@
 			<argument index="0" name="json" type="String">
 			</argument>
 			<description>
-				Parse json text to a Variant (use [method typeof] to check if it is what you expect).
+				Parse JSON text to a Variant (use [method typeof] to check if it is what you expect).
+				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="pow">