Get rid of the top level error string in the json, deserialize as an APIError