changed input file to json