json.indent: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 5: Line 5:
|description=
|description=
Outputs a JSON object in a nice format for debugging purposes.
Outputs a JSON object in a nice format for debugging purposes.
Formatting will not appear unless the function is surrounded by the <pre></pre> tags or some other method is used to preserve the formatting done by the function.
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=
|usage=

Revision as of 17:12, 16 November 2010

 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 -