# Json Beautifier

**URL:** <https://racket.discourse.group/t/json-beautifier/1541>\
**Category:** Questions & Answers\
**Created:** [December 7, 2022, 2:11am UTC](https://racket.discourse.group/t/json-beautifier/1541 "2022-12-07T02:11:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![LiberalArtist](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/liberalartist/32/151_2.png) [@LiberalArtist](https://racket.discourse.group/u/LiberalArtist)\
**Post date:** [December 7, 2022, 2:27am UTC](https://racket.discourse.group/t/json-beautifier/1541/2 "2022-12-07T02:27:08Z")

</div>

Not yet, but there's an open PR!

> <https://github.com/racket/racket/pull/4300>
>
> Add \`#:indent\` to \`write-json\`. (See also https://github.com/racket/racket/pull/…4296).
> \`\`\`\`racket
> Welcome to Racket v8.5 \[cs\].
> \> (require json)
> \> (for (\[indent (in-list '(#f 0 4 #\\tab))\])
> (newline)
> (write-json #hasheq(\[waffle . (1 2 3)\] \[와플 . (1 2 3)\])
> #:indent indent)
> (newline))
> 
> {"waffle":\[1,2,3\],"와플":\[1,2,3\]}
> 
> {
> "waffle": \[1, 2, 3\],
> "와플": \[1, 2, 3\]
> }
> 
> {
> "waffle": \[1, 2, 3\],
> "와플": \[1, 2, 3\]
> }
> 
> {
> "waffle": \[1, 2, 3\],
> "와플": \[1, 2, 3\]
> }
> \`\`\`\`

---

_[View the full topic](https://racket.discourse.group/t/json-beautifier/1541)._
