working in (put data to json file).