JSON well-formed checking

      No Comments on JSON well-formed checking

Whenever you create some JSON output and want to make sure that the generated data is really parsable you can take the XML ValidatorBuddy editor to quickly check one or many JSON files with just a few clicks.

Select the JSON documents you want to check in the built-in File Explorer window of XML ValidatorBuddy and use the “Check if JSON well-formed” command from the JSON menu.

check json well-formed

Command to check well-formed JSON

And if we have some malformed JSON to check like here:

{
“root”: {
“span”: [ { “style”: “font” }, 1, ]
}
}

we get the following error report in the editor:

json check results

Results of JSON well-formed check

This way you can easily make sure that your JSON data is also readable by other applications and also by the JSON validator.

»crosslinked«

Leave a Reply