Describe the bug
I have a folder containing many TOML documents, which need to be combined into a single JSON document (by combining them into one array of objects).
If I run yq ea '[.]' -o json *.toml, the output document's root array only includes the contents of the first TOML document. If I instead use YAML documents for input and use yq ea '[.]' -o json *.yaml, the result I'd expect is output.
Version of yq: 4.52.4
Operating system: macOS Sequoia 15.7.3
Installed via: Homebrew
Input TOML
data1.toml
data2.toml:
Command
The command you ran:
yq ea '[.]' -o json *.toml
Actual behaviour
Expected behaviour
[
{
"id": "Foobar"
},
{
"id": "Barbar"
}
]
Additional context
I don't think there is any inherent difference for TOML that I'm overlooking, but if I am, apologies!