reading/writing json through FS layer