moving data to json