Reset JSON arrays on new loops