Hasan TEZCAN Posted on Oct 12, 2022 Pretty Print JSON #json #prettify #minify For Pretty Print JSON JSON.stringify(JSON.parse(jsonStr), null, 2); Enter fullscreen mode Exit fullscreen mode For Minify JSON JSON.stringify(JSON.parse(jsonStr)); Enter fullscreen mode Exit fullscreen mode Source: https://stackoverflow.com/a/65154264/10694425 Top comments (0) Subscribe Submit Preview Dismiss Code of Conduct • Report abuse
Top comments (0)