Parse the json response from Gerrit and strip the magic prefix.
Parameters
response: Response
An API response.
Returns Promise<unknown>
Remarks
To prevent against XSSI attacks the JSON response body from Gerrit starts
with a magic prefix that must be stripped before it can be fed to a JSON
parser.
Parse the json response from Gerrit and strip the magic prefix.