DEV Community

Damon
Damon

Posted on Edited on

The JSON You Need to Read Is the JSON You Can't Upload

The JSON You Need to Read Is the JSON You Can't Upload

It is 2:14am and the payment webhook is failing in production.

The log line is 4,000 characters long. The terminal wraps it across eleven visual rows, so the nesting is invisible — you can see that amount_due is 4999, but not whether it sits under data.object or under previous_attributes. You know the answer is somewhere in that wall of text. You are reading it with grep and your eyes.

That is the moment you open a JSON formatter. And that is the moment you hit the real problem: the payload contains a customer ID, an email, an idempotency key, and a partial card fingerprint. You cannot paste that into a website that uploads it to a server.

The JSON you most need to read is exactly the JSON you are not allowed to upload.

The pain, in five layers

Pain 1: nobody produces pretty JSON.
APIs minify. Loggers minify. Message queues minify. The default output of every system that emits JSON is one line, because bytes are cheap and readability is the consumer's problem. You are always the consumer.

Pain 2: a one-line object defeats every reading strategy you have.
Terminal wrapping breaks at the column, not at the structure. grep finds the key but not the path. jq would solve it — if it were installed, if you remembered the filter syntax, and if the machine were not a locked-down bastion host at 2am.

Pain 3: the payload is sensitive, and most tools are not.
This is the layer that actually blocks people. A payment event, a login response, an internal API dump — they carry PII, tokens, tenant IDs. Every "free online JSON formatter" that asks you to paste into a textarea is asking you to move production data to a stranger's server. At 2am, under incident pressure, that is how breaches get their start.

Pain 4: formatting is never the last step.
You format it, then you need to minify it back to paste into a curl command, or copy one nested subtree, or compare it against the version from yesterday. A tool that only pretty-prints is a tool that solves half the problem and leaves you with a new one.

Pain 5: validation is silent until it fails.
A missing comma, a trailing comma, a string that should be a number — JSON parsers fail without explanation. You stare at the line, you count brackets, you guess. The error message tells you the character position, not the human meaning.

The tool

OnliTools JSON Formatter handles all of this in the browser. You paste your JSON, and it formats, minifies, validates, and lets you search and collapse nodes. The processing stays on your device. No upload. No server.

OnliTools JSON Formatter

How it works

  1. Go to onlitools.com/json-formatter.

Step 1: Open the JSON Formatter

  1. Paste your JSON into the editor. The formatter validates it immediately and shows any syntax errors.

Step 2: Paste and validate JSON

  1. Click Format to pretty-print, or Minify to compress. Use the tree view to collapse and expand nested structures.

Step 3: Format, minify, and explore

  1. Search for keys or values inside the document.
  2. Validate to catch syntax errors before they reach production.

Why this matters

At 2:14am, the last thing you need is another server between you and your data. This tool gives you the readability of a formatter, the power of a tree viewer, and the safety of local processing. You paste, you read, you fix, you move on. No upload. No install. No breach.

If you are reading JSON in a terminal at 2am, you are already paying the cost of a bad tool. This one is free, local, and fast enough to make the old way feel like a mistake.

Top comments (0)