Merge JSON files, with a twist: optionally add metadata from the filename or the files' stats to each dataset.