Paste the exact JSON payload
Paste {"active":true,"count":3} and check that formatting retains both data types.
Format, validate, minify JSON or turn plain text into JSON.
JSON distinguishes strings, numbers, booleans, arrays and objects.

Paste {"active":true,"count":3} and check that formatting retains both data types.
Validate and reformat a JSON payload for debugging.
Comments and trailing commas are not standard JSON.
Paste {"active":true,"count":3} and check that formatting retains both data types.
In {"active":true,"count":3}, active is a boolean and count is a number. Writing "true" or "3" in quotes changes their types even though the values look similar in a preview.
Use the real tool above to verify the result. The example illustrates the workflow, not a guaranteed outcome.
In {"active":true,"count":3}, active is a boolean and count is a number. Writing "true" or "3" in quotes changes their types even though the values look similar in a preview.
JSON requires double-quoted property names and does not permit trailing commas in standard syntax. Repair the source rather than treating silent coercion as validation.
Paste {"active":true,"count":3} and check that formatting retains both data types.
In {"active":true,"count":3}, active is a boolean and count is a number. Writing "true" or "3" in quotes changes their types even though the values look similar in a preview.
A JSON document uses double-quoted property names and string values. The text {"name":"Asha","active":true} is valid JSON, while {name:'Asha'} is JavaScript-style object notation and not valid strict JSON. Trailing commas are also rejected by standard JSON parsing. A formatter can re-indent a valid document without changing its information, but it cannot safely guess what an ambiguous malformed document was intended to mean. If a parsing error appears, identify the first invalid token rather than merely removing characters until the file is accepted.
Numbers and strings have different meanings in structured data. An ID such as "00123" should usually remain a string if its leading zeros carry meaning. Writing 00123 as an ordinary JSON number is invalid or at least ambiguous depending on surrounding syntax. The Boolean value true is not the same as the text "true", and null differs from a quoted "null". Use these distinctions when preparing configuration files, API examples and product-data exports, especially when downstream programs perform comparisons.
Arrays use square brackets and preserve order; objects use braces and map string keys to values. A list of two tasks can be represented as [{"task":"write"},{"task":"review"}]. Formatting adds line breaks and indentation to show the nesting, making it easier to spot a misplaced closing bracket. A minified document and a pretty-printed document can carry the same JSON values. Never assume the smaller byte count means data was removed, and avoid comparing formatted files line-by-line without considering ordering and string escapes.
If you edit a configuration manually, use a parser to validate it after every substantive change. A property that is syntactically present may still be semantically wrong for the target application: for instance, a field expecting an integer might reject a string. JSON syntax validation does not replace schema validation or API documentation. Likewise, a formatter cannot establish that the data contains no secrets. Review tokens, keys and personal information before sharing a formatted output publicly.
Strings containing quotation marks, backslashes and newlines need correct escape sequences. A malformed escape can invalidate the entire document. If content originated from an untrusted website, do not use a text-to-JSON operation as proof that it is safe to execute; JSON is data, not an executable script. When storing files, choose UTF-8 where the receiver expects it and test with sample non-English text. Compare the parsed structure before and after formatting to ensure values remain unchanged.
A JSON object with {"nickname":null} explicitly contains the property with a null value. An object without the nickname key omits that property entirely. Applications may interpret these cases differently, especially when updating records. A formatter does not establish whether an absent field should be created or whether null is allowed by an API schema. When preparing request bodies, read the recipient's contract and compare required fields, optional fields and data types before treating formatted output as ready for transmission.
When preparing an API request, the literal value 42 differs from the string "42", and true differs from "true". Some applications accept one but reject the other because the types carry meaning. A trailing comma after the last property may look harmless in JavaScript object syntax yet is not valid standard JSON. Try a small example with a nested array and a null value, then inspect the formatted output to ensure the data structure survives. Formatting a JSON file with indentation does not guarantee that its keys match an external API's expected schema, and minifying a file does not encrypt its contents.
"3" is text while 3 is numeric; downstream software can treat them differently.
JSON objects represent named members, and consumers generally access fields by key rather than relying on their display order.
No. Syntactic validity is separate from API schema requirements, permissions and field names.
"3" is text while 3 is numeric; downstream software can treat them differently.
JSON objects represent named members, and consumers generally access fields by key rather than relying on their display order.
No. Syntactic validity is separate from API schema requirements, permissions and field names.
A quote inside a JSON string must be escaped or it may terminate the value and invalidate the surrounding document.