Refacted interation of JSON