How to use it
- 1Paste your JSON, open a file, or load the valid or invalid example.
- 2Read the status: valid, valid with warnings, or invalid.
- 3For errors, check the highlighted line, the exact column and the explanation.
- 4Copy the validation report to share it with your team.
What does a JSON validator check?
This validator checks that your text follows the JSON grammar defined by RFC 8259 and ECMA-404: one root value, double-quoted strings and keys, no trailing commas, no comments, valid escape sequences and correctly written numbers.
It does not perform JSON Schema validation. A document can be syntactically valid while still missing fields your application expects; schema validation is a separate step.
Errors versus warnings
The validator stops at the first syntax error and reports its position with an explanation. The validation status describes JSON syntax, subject to DataVelix’s processing limits.
Duplicate keys are valid JSON syntax but can lead to different results across parsers. DataVelix reports a warning with the key’s path and the line numbers of the duplicate and first occurrence.
Validation and diagnostic limits
The validator collects up to 1,000 duplicate-key warnings and displays the first 50. The copied report includes all collected warnings. Syntax checking continues after the warning count reaches its cap, so the warning list can be incomplete even when validation finishes.
Duplicate paths and keys have a separate combined budget of 256,000 characters. Exceeding it stops validation. A processing-limit message does not decide whether the entire input is valid JSON.
Imports accept up to 10 MiB per file or up to 15,000,000 characters of pasted text. Limits include 500 nesting levels, 300,000 JSON values, 2,048 characters per key and 8,000,000 characters per string. Numeric tokens are limited to 512 characters and diagnostic paths to 16,384. Split an oversized input into valid, smaller JSON documents and try again.
Common JSON mistakes
Trailing commas after the last item, single quotes instead of double quotes, unquoted keys, comments copied from JavaScript or JSONC files, and values such as NaN or undefined are examples of invalid JSON. Each has a dedicated message explaining how to fix it.
Frequently asked questions
Does this tool support JSON Schema?
Not at the moment. It validates JSON syntax only, and says so clearly in every report.
Why are duplicate keys only a warning?
The JSON standard says object names should be unique but does not forbid duplicates. Because behavior varies between parsers, the validator flags them without marking the document invalid.
Can it validate JSON Lines or multiple documents?
A JSON document has a single root value. If several values follow each other, the validator reports unexpected content after the first one.
Is the validation done on a server?
No. The JSON you paste or open is checked locally in your browser.