add server file with write and read for json file