{"id":466002,"date":"2026-04-20T14:28:00","date_gmt":"2026-04-20T14:28:00","guid":{"rendered":"https:\/\/livelycity.com\/switzerland\/blog\/2026\/04\/20\/pretty-print-json-using-javascript-stack-overflow\/"},"modified":"2026-04-20T14:28:00","modified_gmt":"2026-04-20T14:28:00","slug":"pretty-print-json-using-javascript-stack-overflow","status":"publish","type":"post","link":"https:\/\/livelycity.com\/switzerland\/blog\/2026\/04\/20\/pretty-print-json-using-javascript-stack-overflow\/","title":{"rendered":"pretty-print JSON using JavaScript &#8211; Stack Overflow"},"content":{"rendered":"<p>How can I display JSON in an easy-to-read (for human readers) format? I&#8217;m looking primarily for indentation and whitespace, with perhaps even colors \/ font-styles \/ etc.<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/4810841\/pretty-print-json-using-javascript\" target=\"_blank\" class=\"feedzy-rss-link-icon\">Read More<\/a>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How can I display JSON in an easy-to-read (for human readers) format? I&#8217;m looking primarily for indentation and whitespace, with perhaps even colors \/ font-styles&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-466002","post","type-post","status-publish","format-standard","hentry","category-zurich","wpcat-8-id"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts\/466002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/comments?post=466002"}],"version-history":[{"count":0,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts\/466002\/revisions"}],"wp:attachment":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/media?parent=466002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/categories?post=466002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/tags?post=466002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}