convert list of file paths in current stream to a json file