When outputting JSON, return an array of objects…
…even if only one file is requested.
This allows for consistent handling of JSON output in cases of arbitrary numbers of input files.
Fixes MediaArea/MediaInfo#1103
I am hesitating about this proposal because it is possible that a lot of people use the JSON file per analyzed file and it will break things for them. I check a bit later what could be done (option for forcing this feature?).
Thanks @JeromeMartinez. I understand; please let me know what changes you determine are needed!
…even if only one file is requested.
This allows for consistent handling of JSON output in cases of arbitrary numbers of input files.
Fixes MediaArea/MediaInfo#1103
Tested - works as suggested in issue.