Uses stdClass instead of Array in request method