Closed alexkreidler closed 3 years ago
Hey @alexkreidler,
Thanks for raising this.
I've fixed the issue and it will be released under v1.13.6
shortly.
echo '[
{
"id": "ABS",
"name": "Australian Bureau of Statistics"
},
{
"id": "ECB",
"name": "European Central Bank"
},
{
"id": "ESTAT",
"name": "Eurostat"
},
{
"id": "ILO",
"name": "International Labor Organization"
}
]' | dasel -r json -w csv
id,name
ABS,Australian Bureau of Statistics
ECB,European Central Bank
ESTAT,Eurostat
ILO,International Labor Organization
I have this json:
Then I run the following and get:
I then tried some slight modifications. Running
cat test.json | dasel -p json -w csv ".[*]"
gets:Error: could not query node: could not find value: selector is not supported here: .[*]
Then, running
cat test.json | dasel -p json -w csv ".[*]" -m
outputs the following:which is better, but it should be comma separated values.
Please let me know if I can provide any more information. Thanks for this great project!