write into Json file