> For the complete documentation index, see [llms.txt](https://junho85.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://junho85.gitbook.io/til/1.programming_languages/javascript/json.md).

# json

## json pretty

json string 을 좀 더 보기 좋게 만들어 주는 방법

```
var jsonString = '{"name":"junho85","address":"some where"}';
var jsonPretty = JSON.stringify(JSON.parse(jsonString), null, 2);
```

결과

```
{
  "name": "junho85",
  "address": "some where"
}
```
