Paste JSON below. Everything happens in your browser — nothing is ever uploaded, which matters since pasted JSON is often an API response, a config file, or something with tokens in it.
JSON.parse/JSON.stringify on this page — no server call, no upload, no logging of what you paste. The JSON API below is a separate, opt-in endpoint for scripts.curl -sS "https://devops.majbase.com/json-tool/api" \
--data-urlencode 'json={"b":1,"a":2}' \
--data-urlencode 'action=format' \
--data-urlencode 'indent=2' \
--data-urlencode 'sort_keys=true'
Returns {"valid": true, "result": "{\n \"a\": 2,\n \"b\": 1\n}"}. Use action=minify for compact output, or action=validate to just check it — either returns {"valid": false, "error": "..."} on invalid JSON instead.