Skip to content

Using Dasel to export JSON at different levels to CSV #273

Answered by TomWright
eroth asked this question in Q&A
Discussion options

You must be logged in to vote

This sounds like a good use-case for mapOf.

$ dasel -f file.json -w csv 'all().mapOf(author,author.login,number,number,title,title).merge()'
author,number,title
querty,4521.000000,Does something really amazing and magical

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@TomWright
Comment options

@TomWright
Comment options

@chmac
Comment options

@chmac
Comment options

@TomWright
Comment options

Answer selected by eroth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants