poll and parse the json