first write function v1 works - need to implement read json before overwrite - Ty