-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Preserve order of keys in JSON lists #388
Comments
This is only an issue when writing to CSV:
More of a note to myself at the moment - hopefully I can better integrate the CSV parser in use. |
dasel is a great tool, thank you very much! |
Hi @TomWright Is there a workaround to keep the original JSON key order? test.json:
Result:
|
@datatraveller1 sorry but no there isn't. The issue is in the CSV writer itself. |
@datatraveller1 just to note I'm not ignoring this issue. It is resolved in V3 which I plan on releasing soon |
Great thank you very much. |
Is your feature request related to a problem? Please describe.
I deal with JSON lists of objects, which I convert to CSV. The key order between the objects is consistent, yet in the output is random.
Describe the solution you'd like
We already have preserved key order for regular objects:
I would love to have the same feature for lists of objects – ie:
Instead, what currently happens is:
The text was updated successfully, but these errors were encountered: