Pass JSON, not an Object on error.