I moved the json_parsing into the loop above so that unparseable results (corruption? weird error cases?) are retried as well.