-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output formatting is not right in some arrays #364
Comments
More on these. One would expect this will work:
The json seems to be reasonable.
Same json output.
Now csv to csv works.
|
Thank you for the detailed examples @piotrwiniarczyk-silvair. I will take a look at these cases to fully understand them ASAP. |
Hey @piotrwiniarczyk-silvair , I have fixed this issue. To access the fix immediately please use the development version of dasel. |
This has been released under |
The
Not sure about this one.
|
Sorry I forgot about XML - my mistake. I will revisit that. |
Describe the bug
The array is wrongly output. See repro.
To Reproduce
Output -
Output xml
while
echo '{"u":[{"n":"A"},{"n":"B"}]}' | dasel -r json -w xml 'u.all()'
seems to be better
Output csv
Expected behavior
echo '{"u":[{"n":"A"},{"n":"B","a":"1"}]}' | dasel -r json -w csv 'u'
works, but trying to get a csv with column "n" only is too hard for me. Maybe this is related to above problems.
This also should not be like this:
echo '{"u":[{"n":"A"},{"n":"B","a":"1"}]}' | dasel -r json -w xml 'u.all()
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: