{"id":18,"date":"2022-10-04T09:19:05","date_gmt":"2022-10-04T09:19:05","guid":{"rendered":"https:\/\/www.json-buddy.com\/blog\/?p=18"},"modified":"2022-10-09T10:16:08","modified_gmt":"2022-10-09T10:16:08","slug":"pretty-print-and-remove-whitespace-for-large-json-data","status":"publish","type":"post","link":"https:\/\/www.json-buddy.com\/blog\/2022\/10\/04\/pretty-print-and-remove-whitespace-for-large-json-data\/","title":{"rendered":"Pretty-print and remove whitespace for large JSON data"},"content":{"rendered":"\n<p>What do you do if you need to compact a JSON document but the file has more than 400 MB and 20 Million lines?\u00a0Or the other way around, you have a large document and it is impossible to read because it has no formatting? So you need a JSON editor which can do two things for you. The editor can open and view really large text files and it needs to know how to format or compact your JSON data. Luckily, <a href=\"https:\/\/www.json-buddy.com\" target=\"_blank\" rel=\"noopener\">JSONBuddy<\/a> can do both for you.<\/p>\n\n\n\n<p>Simply select your large JSON document in the built-in File Explorer window. You can also select multiple files if you need to do this for several documents:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"http:\/\/xml-buddy.com\/xmltribune\/wp-content\/uploads\/2018\/03\/json-buddy-remove-whitespace-file-explorer.png\"><img decoding=\"async\" src=\"http:\/\/xml-buddy.com\/xmltribune\/wp-content\/uploads\/2018\/03\/json-buddy-remove-whitespace-file-explorer-1024x661.png\" alt=\"Remove whitespace from big JSON data\" class=\"wp-image-554\"\/><\/a><figcaption>Remove whitespace from big JSON data<\/figcaption><\/figure><\/div>\n\n\n<p>Run either the &#8220;Pretty-print JSON&#8221; or &#8220;Remove whitespace from JSON&#8221; command from the JSON menu. JSONBuddy will save the output document next to the original JSON with a new file name. You will still have the original content as before on your disk.<\/p>\n\n\n\n<p>Of course, you can run both commands on the current document in the JSON editor.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What do you do if you need to compact a JSON document but the file has more than 400 MB and 20 Million lines?\u00a0Or the other way around, you have a large document and it is impossible to read because it has no formatting? So you need a JSON editor which can do two things &hellip; <a href=\"https:\/\/www.json-buddy.com\/blog\/2022\/10\/04\/pretty-print-and-remove-whitespace-for-large-json-data\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Pretty-print and remove whitespace for large JSON data<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[8,10,9],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/posts\/18"}],"collection":[{"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":3,"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":39,"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions\/39"}],"wp:attachment":[{"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}