There is a Chrome Extension called JSON View which validates your JSON and shows the error in a modal. Obviously you can use the awesome online tool JSON Lint to validate and format your JSON but this extension is pretty cool.

Update 18/06/13: Added reference to extension.

Chrome should do this out of the box I reckon.

chrome-1

chrome-2

Then when valid JSON we get this nice little collapse/expand node list.

chrome-3

It’s still not super smart though! Dutch?!? lol.

chrome-4

Sam Deering is a Front-end Web Developer who specialises in JavaScript & jQuery. Sam is driven and passionate about sharing his knowledge to educate others.

Free Guide:

How to Choose the Right Charting Library for Your Application

How do you make sure that the charting library you choose has everything you need? Sign up to receive this detailed guide from FusionCharts, which explores all the factors you need to consider before making the decision.


Learn JavaScript for free!
Free course: Introduction to JavaScript

Yours when you take up a free 14-day SitePoint Premium trial.