make write-json-file and remove-json-file public