stream processes one input file into one output JSON file