cli support for json files read/write