unified getResponseAsJsonParser() and getResponseAsJsonpParser() to reduce similar lines.