jmespath / jmespath/jp

Is there any option to make the output 'null' to empty?

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
786
Forks
48
PR merge metrics
No merged PRs in 30d

Description

I love this simple tool, but I found out a problem here.
In shell script, the `null` value matches the string check inconvenient since `[ -z $var ]` is usually for checking empty string and the `null` string makes it failed. The solution here is that we need to remove the `null` string becoming a empty string.
I think maybe `jp` could add a option to solve this problem as it's really common for writing shell script.
Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.