XcodeJSONValidator is your script to to check for possible wrongly formed JSON files.
- Add script somewhere in your project
- Add new “Run Script” under Build Phases to your target
- Add the input file (script) and specify the full path
- Build your app
- Check for JSON errors