Using tag="!!null"
on a whole document to make nulls blank
#2092
little-flag
started this conversation in
General
Replies: 3 comments
-
You can do it like this:
Explanation:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for the code and explanation but this is only working for me with the nulls, not the empty strings. This:
Produces this:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Mn |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to take this:
And get the output:
I found this example:
yq eval --null-input '.a="" | .a tag="!!null"'
But I don't understand how to do this for a whole document.
Many thanks in advance for any advice.
Beta Was this translation helpful? Give feedback.
All reactions