JSON Helper



About JSONLint?

JSONLint is a validator and reformatter for JSON, a lightweight parameter. Here's an example URL to test.

  • JSONLint can also be used as a JSON compressor if you add ?reformat=compress to the URL.
  • Common Errors

    JSON Helper

    Provides methods for working with data in JavaScript Object Notation (JSON) format.

    • Expecting 'STRING' - You probably have an extra comma at the end of your collection. Something like { 'a': 'b', }
    • Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[' - You probably have an extra comma at the end of your list. Something like: ['a', 'b', ]
    • Enclosing your collection keys in quotes. Proper format for a collection is { 'key': 'value' }
    • Make sure you follow JSON's syntax properly. For example, always use double quotes, always quotify your keys, and remove all callback functions.
    Helper

    Different Results

    Helper

    Json Helper

    • JSON Editor Online is a web-based tool to view, edit, format, transform, and diff JSON documents.
    • Provides methods for working with data in JavaScript Object Notation (JSON) format.

    Json Helper For Applescript

    If you use a Windows computer you may end up with different results. This is possibly due to the way Windows handles newlines. Essentially, if you have just newline characters (n) in your JSON and paste it into JSONLint from a Windows computer, it may validate it as valid erroneously since Windows may need a carriage return (r) as well to detect newlines properly. As a solution, either use direct URL input, or make sure your content's newlines match the architecture your system expects!

    JSON Helper

    Jsonhelper C#

    Credits

    Maintained by CircleCell. Thanks to Douglas Crockford of JSON and JS Lint, and Zach Carter, who built a pure JavaScript implementation. You can download the JSONLint source code on GitHub.