mirror of https://github.com/k3s-io/k3s
![]() It is common in constrained circumstances to prefer an empty string result from JSONPath templates for missing keys over an error. Several other implementations provide this (the canonical JS and PHP, as well as the Java implementation). This also mirrors gotemplate, which allows Options("missingkey=zero"). Added simple check and simple test case. |
||
---|---|---|
.. | ||
doc.go | ||
jsonpath.go | ||
jsonpath_test.go | ||
node.go | ||
parser.go | ||
parser_test.go |