Closed PenelopeFudd closed 7 months ago
Hi;
This example generates half xml/half internal-format output:
cat << 'EOF' > a.json [ { "copy": { } } ] EOF xq -x --xml-root=a --slurpfile a a.json '$a' <<< '<a/>' <a>[OrderedDict([('copy', OrderedDict())])]</a>
I'm guessing --slurpfile a a.json has a bug, because replacing it with --argjson a "$(cat a.json)" works as expected.
--slurpfile a a.json
--argjson a "$(cat a.json)"
Thanks for the fine program! :-)
Sorry about missing this issue, @PenelopeFudd. I just ran your example and confirmed that this bug has since been fixed. Thank you for reporting.
Hi;
This example generates half xml/half internal-format output:
I'm guessing
--slurpfile a a.json
has a bug, because replacing it with--argjson a "$(cat a.json)"
works as expected.Thanks for the fine program! :-)