added obj2arr call to getUrl