scape data from NHATs and write to json