API Request Builder for Fetch and cURL
Review the generated fetch or cURL code before using it.
Open tool →Check JSON syntax, format it for easy reading, or minify it for a compact result.
JSON (JavaScript Object Notation) is a text format used for configuration files, APIs and exchanging data. Valid JSON can be an object, an array, a string, a number, true, false or null.
| Issue | How to fix it |
|---|---|
| Single quotes | Use double quotes around property names and strings. |
| Trailing commas | Remove the comma after the last item in an object or array. |
| Missing punctuation | Separate properties with commas and names from values with colons. |
| Comments | Remove comments. Standard JSON does not support them. |
Validate JSON: Check syntax without changing your input. Syntax errors include the browser's explanation and a location when available.
Format: Validate and indent JSON with two spaces. Minify: Validate and remove unnecessary whitespace. Both use JavaScript's JSON parser and serializer, which can round large numbers and collapse duplicate object keys.
Copy: Copy the current input. Clear: Remove the input and validation message.
This tool checks JSON syntax. It does not validate against a JSON Schema or confirm that configuration values are correct for a specific application.