← All articles
mobile

JSONView – The Sweet little FireFox Plugin

JSONView turns ugly raw JSON API responses into readable, formatted output right in Firefox -- a small plugin that's a real productivity boost.

Donn Felker

Donn Felker

2011.02.18 · 1 min read · updated February 23, 2011

I work with JSON data A LOT when working with REST services. Usually when hitting these API endpoints the data is downloaded and opened up by my default text editor, TextMate. When I open this up, the data looks like this …

Data from www.tekpub.com/api/productions

UGLY.

Until a colleague of mine introduced me to a new good friend, JSONView, a plugin for FIreFox. Now, when I hit that same API, the data looks like this IN THE BROWSER:

Data from search.twitter.com/search.json?q=ruby

Sweet.Perfect for debugging and looking at the data formatted. Nice productivity boost.

Caveats

The content type must be application/json. Notice the first screen shot shows text from TekPub’s api. This is why we can also see this data in a browser. Normally if a file has the content type of application/json the browser will ask you to save the file.   Twitters api does return a application/json content type which is why JSONView works in this scenario.

Donn Felker

Written by Donn Felker

I've spent 25+ years shipping software, writing books, and running my own companies. I write about thinking clearly, working for yourself, and doing real work while AI rewrites the rules. New essays land here every week.

Get the newsletter

Keep reading