From mschae’s docs
Change formatting |
Fix unintended space |
||
| Line 1: | Line 1: | ||
<includeonly> {{#if: {{{2|}}}|<span class="nowrap json-key"> | <includeonly> {{#if: {{{2|}}}|<span class="nowrap json-key">{{{2}}}</span>|}}{{#if: {{{2|}}}| (|}}{{#switch: {{{1|[[Category:Pages with invalid template usage/Json]]}}} | ||
| object = object | |object=object | ||
| array = array | |array=array | ||
| int = int | |int=int | ||
| float = float | |float=float | ||
| boolean = boolean | |boolean=boolean | ||
| string = string | |string=string | ||
|}}{{#if: {{{2|}}}|)|}}</includeonly><noinclude> | |}}{{#if: {{{2|}}}|)|}}</includeonly><noinclude> | ||
This template is used to illustrate JSON object trees in documentation. | This template is used to illustrate JSON object trees in documentation. | ||
Revision as of 14:16, 13 October 2025
This template is used to illustrate JSON object trees in documentation.
Usage
<div class="treeview">
* {{Json|object}}: The object.
** {{Json|int|number}}: The version number.
</div>
Example
- object: The object.
- version (int): The version number.