retrieving json object from url