Iterate a json file object with a sensor

You may want to look at this thread. You could use jq and not rest.