added ability to use target dir for json file