JSON Formatter
Format, minify, and validate JSON instantly in your browser
Status
—
Keys
—
Depth
—
Size
—
Working with JSON
JSON in authentication, APIs, and configuration
JWT Payloads
JWTs carry JSON claims — user identity, roles, scopes, and expiry. Formatting the decoded payload makes it easy to audit what's being asserted.
OIDC Discovery
OpenID Connect discovery documents are JSON objects. Formatting them reveals supported scopes, grant types, endpoints, and signing algorithms at a glance.
API Responses
Token introspection, userinfo endpoints, and error responses all return JSON. Use minify to compact payloads before storage or formatting to inspect them.
Working with JSON in auth workflows
Where it shows up
JWT payloads and headers are JSON once decoded. OIDC discovery documents, JWKS key sets, and userinfo responses are JSON. So is most of a Management API. Formatting and validating it is a routine part of debugging an integration.
JWKS documents in particular are worth reading closely — a keys array with more than one entry means rotation is in progress or a previous rotation didn't finish, and that's exactly the state where kid matching starts to matter.
Validation catches real bugs
Trailing commas, single quotes instead of double, and unquoted keys are all valid JavaScript object literals and invalid JSON. They're a frequent source of config files that load in one tool and fail in another.
Duplicate keys are technically permitted by the spec but handled inconsistently — most parsers keep the last occurrence, some the first. In a claims object that ambiguity is a security problem, not just a correctness one.
Formatting is not sanitizing
Pretty-printing does not make untrusted JSON safe. If you render parsed values into a page, you still need output encoding; if you use them in a query, you still need parameterization.
Worth keeping in mind when pasting a token payload somewhere: the values came from a token, and until that token's signature is verified, every field in it is attacker-controlled input.
Frequently asked questions
Working with our API responses?
The Management API returns JSON for every user, tenant, role, and connection — scriptable, documented, and available on the free tier.
Free, unlimited users. No credit card required.