Tool to write out json file with data and preprocessing