JSON Validator answers whether the supplied text can be parsed as JSON. Its current implementation is a syntax check using JSON.parse, not a JSON Schema validator.
Check a minimal example
- Paste
{"ok":true}into the JSON field. - Read the Valid status and object type, or run the operation for a text result.
- Try
{"ok":true,}and confirm it is rejected.
JSON requires double-quoted property names and string values. JavaScript object literals containing single quotes, comments or trailing commas need correction before they can be sent as strict JSON. The JSON specification is the primary syntax reference.
Do not mistake valid for acceptable
{"quantity":-5} can be syntactically valid while being invalid for an order API. Check its schema or application rules for positive quantities, required fields, dates and permitted identifiers. Likewise, a valid document does not establish that an endpoint is safe to call.
Preserve the data you are checking
This validator parses values using ordinary JavaScript numbers. A syntax success is not a guarantee of arbitrary numeric precision or duplicate-key detection. Use JSON Formatter and the numeric-preservation checks for that separate workflow.
Correct errors in the original document and validate again. Error positions can differ between browser versions and may point after the actual mistake. Inspect the surrounding characters rather than deleting data blindly to make the message disappear.