Skip to content

When outputting JSON, return an array of objects… - #2295

Open
trallen wants to merge 1 commit into
MediaArea:masterfrom
trallen:json-output
Open

When outputting JSON, return an array of objects…#2295
trallen wants to merge 1 commit into
MediaArea:masterfrom
trallen:json-output

Conversation

@trallen

@trallen trallen commented May 12, 2025

Copy link
Copy Markdown

…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

…le is requested.

This allows for consistent handling of JSON output in cases of arbitrary numbers of input files.

Fixes MediaArea/MediaInfo#1103
@JeromeMartinez

Copy link
Copy Markdown
Member

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?).

@trallen

trallen commented May 13, 2025

Copy link
Copy Markdown
Author

Thanks @JeromeMartinez. I understand; please let me know what changes you determine are needed!

@alex3kov

Copy link
Copy Markdown

…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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CLI][JSON] Make JSON structure uniform for 1 and 2+ input files

3 participants