{#if isAutoCollapsibleArray} [ {#each json as item, idx} {format(item)}{#if idx < json.length - 1} , {/if} {/each} ]{#if !_last},{/if} {:else if isAutoCollapsibleObject} {'{'} {#each Object.entries(json) as item, idx} "{item[0]}": {format(item[1])}{#if idx < Object.entries(json).length - 1} , {/if} {/each} {'}'}{#if !_last},{/if} {:else if items.length} {openBracket}
{#each items as i, idx}
{#if !isArray} "{i}": {/if} {#if getType(json[i]) === 'object'} {:else} {format(json[i])}{#if idx < items.length - 1} , {/if} {/if}
{/each}
{closeBracket} {#if !_last},{/if}
{openBracket}{collapsedSymbol}{closeBracket} {#if !_last && collapsed},{/if} {:else if Array.isArray(json)} [] {:else if typeof json === 'object'} {'{}'} {/if}