KeenKit JSON Viewer

How to view JSON in Firefox

Firefox includes a JSON viewer. Open a local .json file in Firefox or visit a URL that serves JSON directly to the tab, such as an API endpoint with Content-Type: application/json.

Use the built-in viewer

  1. For a local file, use Ctrl+O or Command+O and select it. For a response sent to a web app in the background, use DevTools Network and select the request to inspect its response.
  2. Use the tree to expand objects and arrays. Open Raw Data to see the original source and use its pretty-print option if you want an indented text view.
  3. If Firefox downloads the response or shows plain text, check the server’s Content-Type and Content-Disposition. You can also open a downloaded JSON file directly.

Mozilla’s JSON viewer documentation

Copy a path from a JSON response

KeenKit JSON Viewer is available from the Chrome Web Store, Microsoft Edge Add-ons, and Firefox Add-ons. Add to Chrome Get it for Edge Get it for Firefox

KeenKit JSON Viewer is useful when you need to refer to one field precisely. Open the JSON response in a tab with the extension installed, select a field inside an array, and use Copy path. The resulting JSONPath can identify the field in a bug report or a tool that accepts JSONPath.

In Firefox, the extension uses site access to adjust the media type of eligible top-level JSON responses so it can display its own tree. It reads the data locally and keeps no persistent copy. Use Firefox’s built-in viewer for local files.

The source code is public under the MIT license: github.com/keenkit/json-viewer. JSON Viewer privacy policy