JSONLint is a JSON linting (validation) and formatting tool.
JSONLint, which validates and formats json files, is available as a browser based tool as well as a pure JavaScript version.
The latter can be integrated with nodejs or another server-side javascript solution for command line usage.
It can also be integrated with any ide which supports JavaScript for plugin development.