get and set dotfile as a json config