Making sure json conversion goes through all pages of API result