Developer tools

JSON Formatter: read response trees and preserve exact values

Explore a JSON response as a tree, then use Raw when you need the original digits, key order or source text.

Get extension

JSON Formatter turns a JSON response opened in Chrome into a collapsible, color-coded tree. Use Parsed to explore its structure and Raw when the exact response text matters. I'd switch back to Raw before copying a long numeric identifier or investigating a value that appears to have changed.

Blue braces framing nested cards with blue, gray and orange data blocks inside a browser window

Choose Callum Locke's JSON Formatter

The developer's repository links to the Chrome extension with store ID bcjindcccaagfpapjjmafapmmgkkhgoa. The listing associated with callumlocke.com identifies version 0.10.2. Several other extensions use similar JSON names, so keep this identity with the instructions.

This extension formats a JSON page when you load it in a browser tab. Its documented features include syntax highlighting, collapsible trees, clickable URLs and optional dark mode. It isn't necessary to paste the response into a separate online formatter to use that workflow.

The JSON Formatter associated with json-formatter.js.org is another product, with a Formatted Raw mode and its own shortcuts. Zovo's similarly named extension is separate too. Their controls don't identify how Callum Locke's Raw and Parsed buttons work.

Before enabling the extension on confidential endpoints, review its site access in Chrome's extension settings and your organization's data policy. I'd use a non-sensitive example first. A public repository or a store disclosure alone doesn't establish that a distributed build has passed a security audit.

Open the response and explore one branch

  1. Open the JSON response URL in the Chrome profile where the extension is installed. Use a response you have permission to inspect.
  2. In the formatted view, select Parsed to explore the object or array. Expand the branch containing the field you're investigating.
  3. Read the field name and its value together. Collapse unrelated branches to keep the relevant structure visible.
JSON Formatter's expanded response tree with login, id and node_id fields, and Raw and Parsed controls at the upper right
Parsed exposes the response's fields as a tree. Raw returns to the response text; the values shown here are an example.

The Chrome listing documents a shortcut for large trees: hold Ctrl, or Command on Mac, while collapsing a tree to collapse its siblings too. Use it when several expanded branches make the field you're reading hard to follow.

Clickable URLs are convenient for following a response's related resources. Check the destination before opening it, especially when the data comes from an untrusted source. A URL being formatted as a link doesn't verify who controls that address.

Use Raw for original text and Parsed for structure

The developer's Raw and Parsed explanation makes the distinction: Raw shows what the server sent, while Parsed represents the result of JavaScript's JSON.parse. Those views serve different questions.

Choose Parsed to find a nested value or understand which properties belong together. Choose Raw to check the original spelling of a number, quoting, whitespace or property order. A visually reorganized tree doesn't establish that the server changed the response.

The README also explains that parsed object keys follow JavaScript's object-key ordering. Numeric-looking keys can therefore appear in a different order from the source text. If order is the issue you're reporting, compare against Raw before blaming the API response.

Check long numeric IDs against Raw

JavaScript's largest safe integer is 9,007,199,254,740,991. MDN's safe-integer explanation defines “safe” in terms of exact representation and comparison. Larger numbers can exist, but integer-level precision isn't guaranteed.

MDN's JSON.parse documentation explains that JSON numbers may already have lost precision when converted to JavaScript numbers. The issue is rounding and representability; values aren't all clamped to the largest safe integer.

For an identifier that must remain exact, inspect the Raw response before copying it. If you control the API, representing a large identifier as a JSON string preserves its digits through ordinary parsing. If you don't control the API, keep the original response text with the issue report rather than assuming the parsed display is an exact transcription.

Check the response and extension conflicts

Start with the page you're viewing. The developer's detection notes describe a combination of Content-Type information and page structure. A URL ending in .json isn't the whole detection rule.

If a response doesn't format, compare with the developer's example response page linked from the store listing. This separates “the extension doesn't activate on this response” from “the extension doesn't activate on a documented example either.” Check that you're using the same browser profile and that the extension is enabled.

The listing warns that other extensions which modify the page's DOM before JSON Formatter runs can conflict with it. On a suitable test page, temporarily disable a suspected conflicting extension and reload, then restore it after the check. Keep the test focused; reinstalling JSON Formatter doesn't identify which other extension changed the page.

If the conflict involves an extension you need, the developer asks you to open an issue. Include the affected response's non-sensitive details and the other extension's identity. Remove tokens and personal data from any response example before sharing it.

Choose the next tool from the question

The current listing says the parsed response is exposed as window.json for exploration in DevTools. That is the parsed object, so the same numeric-precision distinction still applies. Use Raw when the question is about exact source text.

The listing records the developer's declaration that the extension doesn't collect or use your data. That doesn't protect a response you manually paste into another service or an issue report. Keep sensitive data inside the workflow authorized for that response.

Finish with the relevant field and the right representation: a parsed branch for understanding structure, or original text for checking exact values.

About Rasmus Senlogan

I build desktop applications, browser extensions and plugins. I created ExtensionTools to organize the tools I've collected and built, and help others find useful software.

Compare your shortlist

Different tools solve different problems. Start with the task.

For current pricing and permissions, check the developer's website and your browser's extension store.

Useful for

Before you add it

Available for

Visit official website

Choose your browser on the developer's website. Review the store listing and requested permissions before installing.