json.indent: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 8: | Line 8: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
json.indent(obj) | json.indent(obj) | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
json.indent(obj, spaces) | json.indent(obj, spaces) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
* {{code|obj}} - The object to indent. | * {{code|obj}} - The object to indent. | ||
* {{code|spaces}} - | * {{code|spaces}} - Default 2 | ||
}} | }} | ||
[[Category:JSON Function]] | [[Category:JSON Function]] |
Latest revision as of 23:59, 15 March 2023
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
json.indent() Function
• Introduced in version 1.3b51
Outputs a JSON object in a nice format for debugging purposes.
Formatting will not appear unless the function is surrounded by the "pre" html tags, or some other method is used to preserve the formatting done by the function.
Usage
json.indent(obj)
json.indent(obj, spaces)
Parameters
obj
- The object to indent.spaces
- Default 2