Assume that all errors are return as a JSON encoded string.