Last updated 2 years ago
This flag tells dasel to output null instead of ValueNotFound errors.
null
ValueNotFound
Pass the -n, --null flag to commands.
-n
--null
With the flag:
$ echo '[1]' | dasel -p json -n '.[1]' null
Without the flag:
$ echo '[1]' | dasel -p json '.[1]' Error: could not query node: could not find value: no value found for selector: .[1]: [1]