Browse Source

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

Improved parse_json() doc about numerical values conversion.

[ci skip]
Rémi Verschelde 8 years ago
parent
commit
2d95c510fc
1 changed files with 2 additions and 1 deletions
  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">