wrap json.parse in try/catch and pass the string value if a failure occurs, closes #32