{"id":47,"date":"2018-05-08T14:44:00","date_gmt":"2018-05-08T14:44:00","guid":{"rendered":"https:\/\/www.json-buddy.com\/blog\/?p=47"},"modified":"2022-10-09T14:49:49","modified_gmt":"2022-10-09T14:49:49","slug":"pretty-print-and-remove-whitespace-for-large-json-data-2","status":"publish","type":"post","link":"https:\/\/www.json-buddy.com\/blog\/2018\/05\/08\/pretty-print-and-remove-whitespace-for-large-json-data-2\/","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<h2>Select your large JSON data<\/h2>\n\n\n\n<p>Simply select your large JSON document in the <strong>built-in File Explorer<\/strong> window. This is important to avoid loading the file into the editor and to keep a <strong>constant memory footprint<\/strong> for really huge JSON documents. 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:\/\/json-buddy.com\/blog\/wp-content\/uploads\/2018\/05\/json-buddy-remove-whitespace-file-explorer.png\"><img decoding=\"async\" src=\"http:\/\/json-buddy.com\/blog\/wp-content\/uploads\/2018\/05\/json-buddy-remove-whitespace-file-explorer.png\" alt=\"Remove whitespace from big JSON data\" class=\"wp-image-120\"\/><\/a><figcaption>Remove whitespace from big JSON data<\/figcaption><\/figure><\/div>\n\n\n<h2>Remove whitespace from your large JSON documents<\/h2>\n\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 also 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\/2018\/05\/08\/pretty-print-and-remove-whitespace-for-large-json-data-2\/\" 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\/47"}],"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=47"}],"version-history":[{"count":2,"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions\/49"}],"wp:attachment":[{"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.json-buddy.com\/blog\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}