Input JSON
{
"operation": "json_format",
"text": "{\n \"item\": \"linen\",\n \"stock\": 3\n}",
"indent": 0
}
Attest tools · Developer utilities: cron, regex, UUID, slug and JSON
Remove formatting whitespace from a JSON document.
{
"operation": "json_format",
"text": "{\n \"item\": \"linen\",\n \"stock\": 3\n}",
"indent": 0
}{
"operation": "json_format",
"valid": true,
"formatted": "{\"item\":\"linen\",\"stock\":3}",
"indent": 0,
"sort_keys": false,
"minified": true,
"input_length": 35,
"output_length": 26,
"depth": 1,
"counts": {
"objects": 1,
"arrays": 0,
"strings": 3,
"numbers": 1,
"booleans": 0,
"nulls": 0
},
"duplicate_keys": 0,
"numbers_losing_precision": 0,
"unpaired_surrogates": 0,
"limits": {
"max_text_length": 1048576,
"max_depth": 500,
"max_indent": 8,
"max_output_length": 4000000
},
"source": "Parsed and re-serialised locally with the runtime's own JSON implementation; syntax errors are located by the RFC 8259 scanner in lib/dev_utils-json.mjs.",
"warnings": [],
"notice": "General information only, computed from the caller's own input. Nothing sent here is stored.",
"checked_at": "2026-10-20T20:47:47.507Z"
}curl -s -X POST https://getattest.com.au/api/v1/dev \
-H "authorization: Bearer $ATTEST_API_KEY" \
-H "content-type: application/json" \
--data-raw '{"operation":"json_format","text":"{\n \"item\": \"linen\",\n \"stock\": 3\n}","indent":0}'Run this call with your own bearer key. Issue an API key.
The input was validated and run locally through the registered service. The output above is a display preview of the captured service result. File bytes are described instead of printed, and strings longer than 400 characters are truncated; the HTTP API also adds call_id, credits_charged and credits_remaining. Timestamps and generated identifiers will vary.
Source: apps/api/svc/dev_utils.mjs