VulCode

JSON formatter

Paste JSON and get it formatted, or the exact place of the error.

Category
For developers
Price
free

The tool starts in your browser.

Everything is calculated in your browser. Nothing you type is sent to our server.

How to use it in three steps

The tool as a schematic with this page's example. Each step's number stands where you take it: in the fields, at the result or outside the tool.

JSON formatter
What you enter
{"name":"VulCode","active":true,"services":["vulbio","flaem"]}
  1. Paste the JSON.

  2. Choose pretty-print or minify.

What you get
{ "name": "VulCode", "active": true, "services": [ "vulbio", "flaem" ] }
  1. Copy the result, or fix the error at the given line and column.

Six inputs through the JSON formatter

An error, an empty field, how numbers are written, a repeated key and a large integer. The last row shows a JavaScript limit: keep Discord IDs in JSON as quoted text.

The pasted JSONExpectedWhat the tool returnsResult
The pasted JSON{"a":1,"b":[1,2,}a comma before the bracket, the example from the description
ExpectedAn error, nothing to copy
What the tool returnsAn error, nothing to copy
As expected
The pasted JSON{"name":"VulCode","active":true}pretty-print
ExpectedEach key on its own line, indented by 2 spaces
What the tool returns{ "name": "VulCode", "active": true }
As expected
The pasted JSON{"price":1.50,"qty":1e3}minify
ExpectedThe same values: 1.5 and 1000
What the tool returns{"price":1.5,"qty":1000}
As expected
The pasted JSON{"role":"admin","role":"mod"}the same key twice
ExpectedOne key with the last value
What the tool returns{"role":"mod"}
As expected
The pasted JSON{"id":175928847299117063}a number above 9007199254740991
ExpectedThe same digits
What the tool returns{"id":175928847299117060}
Not as expected
The pasted JSON" "only spaces
ExpectedAn empty result
What the tool returnsAn empty result
As expected

5 of 6 cases as expected

Questions