[doc] Use "param" instead of "code" to refer to parameters (5)
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<return type="int" enum="Error" />
|
||||
<param index="0" name="json_string" type="String" />
|
||||
<description>
|
||||
Attempts to parse the [code]json_string[/code] provided.
|
||||
Attempts to parse the [param json_string] provided.
|
||||
Returns an [enum Error]. If the parse was successful, it returns [code]OK[/code] and the result can be retrieved using [method get_data]. If unsuccessful, use [method get_error_line] and [method get_error_message] for identifying the source of the failure.
|
||||
</description>
|
||||
</method>
|
||||
@@ -65,8 +65,8 @@
|
||||
<description>
|
||||
Converts a [Variant] var to JSON text and returns the result. Useful for serializing data to store or send over the network.
|
||||
[b]Note:[/b] The JSON specification does not define integer or float types, but only a [i]number[/i] type. Therefore, converting a Variant to JSON text will convert all numerical values to [float] types.
|
||||
[b]Note:[/b] If [code]full_precision[/code] is true, when stringifying floats, the unreliable digits are stringified in addition to the reliable digits to guarantee exact decoding.
|
||||
The [code]indent[/code] parameter controls if and how something is indented, the string used for this parameter will be used where there should be an indent in the output, even spaces like [code]" "[/code] will work. [code]\t[/code] and [code]\n[/code] can also be used for a tab indent, or to make a newline for each indent respectively.
|
||||
[b]Note:[/b] If [param full_precision] is [code]true[/code], when stringifying floats, the unreliable digits are stringified in addition to the reliable digits to guarantee exact decoding.
|
||||
The [param indent] parameter controls if and how something is indented, the string used for this parameter will be used where there should be an indent in the output, even spaces like [code]" "[/code] will work. [code]\t[/code] and [code]\n[/code] can also be used for a tab indent, or to make a newline for each indent respectively.
|
||||
[b]Example output:[/b]
|
||||
[codeblock]
|
||||
## JSON.stringify(my_dictionary)
|
||||
|
||||
Reference in New Issue
Block a user