support writing output to multiple files, with different JSON data