Avoid using JSON objects as an error message