Validate and format JSON safely
JSON uses a strict data format built from objects, arrays, strings, numbers, booleans, and null. Property names and string values require double quotes. Trailing commas, comments, single-quoted strings, undefined values, and unescaped control characters are not valid JSON.
The CloudForge validator uses the browser's JSON parser, reports the parsing error, and preserves your input until you choose a transformation. Formatting changes whitespace for readability, while minification removes unnecessary whitespace without changing the parsed data.
JSON formatting, minification, and sorted keys
Readable formatting is useful for code review, API debugging, Azure templates, configuration, and logs. Minification reduces the text size of a payload, although transport compression usually provides the larger network saving.
Sorting object keys can make manual comparisons easier, but key order should not be treated as business meaning. Arrays remain in their original order because array position is significant. Always review transformed output before replacing an application configuration file.
- Use double quotes around property names and strings.
- Remove comments and trailing commas from strict JSON.
- Represent missing values deliberately instead of using undefined.
- Do not paste secrets into tools you do not trust.
Privacy and limitations
Validation and transformation run locally in your browser. CloudForge does not need to upload the JSON to process it. Avoid including credentials, tokens, personal information, or production secrets in any browser tool unless your organizational policy permits it.
Syntax validation proves that the input is valid JSON, not that it matches an application schema. API payloads, ARM templates, and product configuration may require additional fields, types, constraints, or semantic validation.
Frequently asked questions
Why is my JSON invalid even though it looks correct?
Common causes include trailing commas, single quotes, comments, unescaped line breaks, and property names without double quotes.
Does sorting JSON change array order?
No. The sorter recursively sorts object keys while preserving array item order.
Is my JSON uploaded?
No. Validation, formatting, minification, and sorting run in your browser.