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.
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:
This way you can easily make sure that your JSON data is also readable by other applications and also by the JSON validator.