Added JSON parsing error handling to Request