Bug 964977 - Infer JSON from response, r=rcampbell