Improve json getter, make it command line