local JSON inside closure