Opening a raw API response in Google Chrome usually results in an intimidating wall of unformatted, single-line text. Without whitespace or syntax highlighting, spotting a missing comma, tracing a nested object, or verifying a data type feels like trying to read a novel with all the spaces removed.
Fortunately, Chrome includes built-in tools to tame raw data alongside a rich ecosystem of extensions that turn your browser into a lightweight JSON workbench.
Built-in Ways to View JSON in Chrome
You do not always need third-party software to inspect a payload. Chrome offers two native methods right out of the box.
1. The Native “Pretty-Print” Checkbox
When you navigate directly to a URL serving application/json (or drag a local .json file into a Chrome tab), look at the top-left corner of the viewport. Chrome displays a subtle Pretty-print checkbox.
Checking this box immediately formats the raw text with proper indentation and line breaks. While it lacks collapsible trees or color-coded syntax highlighting, it requires zero setup, respects strict corporate security policies that block extensions, and works offline.
2. Chrome DevTools Network & Console Tabs
If you are debugging a web application rather than opening a standalone JSON URL, Chrome DevTools (F12 or Cmd+Option+I on Mac / Ctrl+Shift+I on Windows) is your primary workspace:
- The Network Tab: Click on any XHR/Fetch request, then select the Preview tab. Chrome automatically parses the JSON response into an interactive, collapsible tree structure where you can expand arrays and inspect object properties. (Use the Response tab if you need to see the raw, unparsed string).
- The Console Tab: If you have a massive JSON string copied to your clipboard or logged in the console, right-click the logged object and select Store object as global variable (usually saved as
temp1). You can then run JavaScript methods likeObject.keys(temp1)ortemp1.items.filter(...)directly in the console to query the data.
Upgrading the Experience with Chrome Extensions
When you work with APIs daily, native pretty-printing quickly hits its limits. Dedicated JSON viewer extensions intercept JSON responses and render them with syntax highlighting, clickable URLs, collapsible nodes, and search bars.
| Extension | Best For | Key Standout Features |
| :— | :— | :— |
| JSON Formatter | Everyday speed & simplicity | Open-source, minimal footprint, instant toggle between parsed and raw views, dark mode support. |
| JSONVue | Navigating deep payloads | Displays the exact JSON path (
Leave a Reply