JSON Validator and Formatter

This extension provides one of the fastest ways to validate JSON:

1. Copy a JSON string to the clipboard.
2. Press the Keybreeze hotkey on your keyboard, type a keyword to launch the JSON Validator, and press Enter.
3. Paste the formatted JSON in your application or text editor.

The extension will validate the JSON first. If there are any errors, it will present them in a message box, and it will specify which line/position contains the error. If the JSON is valid, it will format the JSON so that it's easier to read, and it will copy the new, formatted JSON to the clipboard. Essentially this will beautify or prettify your JSON after validating it.

Example JSON string:

{"firstName":"John","lastName":"Smith","age":25,"address":{"streetAddress":"212ndStreet","city":"NewYork","state":"NY","postalCode":"10021","phoneNumber":[{"type":"home","number":"212555-1234"},{"type":"fax","number":"646555-4567"}],"gender":{"type":"male"}}}

After running the extension:

{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25,
  "address": {
    "streetAddress": "212ndStreet",
    "city": "NewYork",
    "state": "NY",
    "postalCode": "10021",
    "phoneNumber": [
      {
        "type": "home",
        "number": "212555-1234"
      },
      {
        "type": "fax",
        "number": "646555-4567"
      }
    ],
    "gender": {
       "type": "male"
     }
  }
}

Download instructions:

Download the attached zip file and extract the contents. Right-click the JSON Formatter.exe file and click Add keyword to Keybreeze. Later, you can copy any JSON string to the clipboard and run the Keybreeze keyword to validate the JSON and beautify it.



Attachments: JSON Formatter.zip  



No comments yet.