implement iteration (and for loop) over name value pairs of JSON objects