[{"data":1,"prerenderedAt":111},["ShallowReactive",2],{"tool-page-en-json-formatter":3,"tool-related-guides-en":85},{"locale":4,"slug":5,"title":6,"seoTitle":7,"description":8,"eyebrow":9,"intro":10,"howTitle":11,"howIntro":12,"steps":13,"benefitsTitle":23,"benefitsIntro":24,"benefits":25,"useCasesTitle":38,"useCasesIntro":39,"useCases":40,"guideTitle":53,"guideIntro":54,"guideSections":55,"faqTitle":68,"faqIntro":69,"faqs":70,"relatedTitle":83,"relatedIntro":84},"en","json-formatter","JSON Formatter Online","JSON Formatter Online — Format and Beautify JSON","Format and beautify JSON with two or four spaces in your browser. Validate, copy, and download readable JSON without uploading it.","Browser-local JSON formatter","Turn compact JSON into a readable structure with consistent indentation. Your input stays on this device.","Readable JSON in three steps","Formatting starts with strict validation, so the result is both consistent and valid.",[14,17,20],{"title":15,"body":16},"Add compact JSON","Paste JSON or choose a local .json file up to 10 MB.",{"title":18,"body":19},"Choose indentation","Select two or four spaces, then format the complete document.",{"title":21,"body":22},"Copy or download","Review the readable result and use it in your editor, documentation, or test fixture.","Formatting without hidden changes","The formatter rewrites whitespace only after standard JSON parsing succeeds.",[26,30,34],{"title":27,"body":28,"icon":29},"Consistent indentation","Normalize nested objects and arrays with a predictable two- or four-space layout.","lucide:align-left",{"title":31,"body":32,"icon":33},"Strict validation first","Trailing commas, comments, and unquoted keys are reported instead of silently repaired.","lucide:badge-check",{"title":35,"body":36,"icon":37},"Local by design","Formatting, copying, and download preparation happen entirely in your browser.","lucide:shield-check","When readable JSON matters","Formatting helps humans inspect structure, review changes, and explain data without changing the values consumed by software.",[41,44,47,50],{"title":42,"body":43},"Review an API response","Expand a compact response into nested objects and arrays that are easier to scan during debugging or integration work.",{"title":45,"body":46},"Prepare documentation examples","Create consistent code samples for API guides, support articles, tickets, and technical discussions without manually aligning braces and commas.",{"title":48,"body":49},"Audit configuration files","Reveal nesting and sibling keys before reviewing a configuration change, checking an exported setting, or comparing environments.",{"title":51,"body":52},"Make diffs easier to read","Normalize indentation before a code review so structural edits are separated from inconsistent whitespace changes.","How JSON formatting works","Formatting is a serialization step performed after strict parsing. It improves presentation but does not add schema checks or repair invalid source.",[56,59,62,65],{"title":57,"body":58},"Two spaces versus four spaces","Two spaces keep documents relatively compact and are common in web projects. Four spaces create stronger visual separation for deeply nested data. Both outputs represent the same JSON value.",{"title":60,"body":61},"Objects and arrays keep their hierarchy","Opening and closing braces or brackets move to predictable levels, while commas separate sibling values. The formatter does not flatten nested structures.",{"title":63,"body":64},"Strings and numbers are preserved as JSON","Escaped characters remain valid JSON strings and numeric values remain numbers. Formatting does not convert values into a different type.",{"title":66,"body":67},"Formatting is not schema validation","A document can be valid JSON but still violate an API contract. Use a JSON Schema validator when you need required fields, formats, ranges, or business rules.","JSON formatting questions","What the formatter changes, what it rejects, and where your data is processed.",[71,74,77,80],{"question":72,"answer":73},"Does the formatter change JSON values?","No. It parses standard JSON and writes the same values with consistent whitespace and indentation.",{"question":75,"answer":76},"Can I choose tabs instead of spaces?","This version supports two or four spaces so results stay predictable across editors and platforms.",{"question":78,"answer":79},"Will invalid JSON be formatted?","No. The tool reports the error location and preserves your original input for correction.",{"question":81,"answer":82},"Is my JSON uploaded?","No. Parsing and formatting run locally in the browser and the site does not receive your JSON.","Continue with another JSON task","Validate the original text, inspect it as a tree, or minify the final result.",[86,91,96,101,106],{"slug":87,"title":88,"description":89,"eyebrow":90},"fix-invalid-json","How to fix invalid JSON","Diagnose trailing commas, single quotes, comments, malformed strings, and missing brackets in invalid JSON.","ERROR GUIDE",{"slug":92,"title":93,"description":94,"eyebrow":95},"json-minification-explained","JSON minification explained","Learn what JSON minification removes, what data it preserves, and when smaller JSON is useful.","CORE CONCEPT",{"slug":97,"title":98,"description":99,"eyebrow":100},"json-minify-vs-compress","JSON minification vs compression","Compare whitespace minification with gzip and Brotli transport compression for JSON files and API responses.","SIZE COMPARISON",{"slug":102,"title":103,"description":104,"eyebrow":105},"json-whitespace-and-size","How JSON whitespace affects file size","Understand which JSON whitespace can be removed and how to measure realistic byte savings.","SIZE & MEASUREMENT",{"slug":107,"title":108,"description":109,"eyebrow":110},"minify-json-for-production","Minify JSON safely for production","Use a practical checklist to validate, minify, compress, cache, and monitor production JSON assets.","PRODUCTION CHECKLIST",1791969046522]