The current implementation outputs JSON in the following way:
[{'<filename>':{'FileSummary':{},...}}]
Using the filename as a key makes processing the JSON data awkward, and
should be avoided. This patch removes that outer key, since the
'FileSummary' data also includes a 'File' field, and so we lose no data.
Mostly looks good. I've rephrased it a little, an made a minor edit ot the example, to help with clarity. In the example, I've added a file extension to the filename, to make it more obviously a filename.