Skip to content

jq remove empty objects from objects array #3169

Closed Answered by emanuele6
lamyergeier asked this question in Q&A
Discussion options

You must be logged in to vote

del(.[] | select(. == {}))

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by lamyergeier
Comment options

You must be logged in to vote
1 reply
@emanuele6
Comment options

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