zaach/jsonlint — pull request #27 by lroggendorff (2012-09-14 04:03:04+00:00)
Title: Add forceformat option

Howdy,

Using jsonlint.com, I got used to the behavior that it goes ahead and formats the source even if errors are found. When I started using the jsonlint cli, I noticed that behavior was missing. It seemed like it might be nice to include, so I thought I'd give it a shot. I've just taken Chris Dary's char-by-char formatter and inserted it. I'm hoping that's cool, or that you and he can work it out one way or the other. :)

Also, while working on this, I noticed a variable name wasn't updated properly in cli.js. That change is included in this PR, or I've also created a branch specifically for that change, so I could send a separate PR if you'd rather.

Cheers,
Lance