Validate the JSON templates for errors