k3s/pkg/util/jsonpath
Clayton Coleman bcea2c8a4e
Allow missing keys in jsonpath
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.
2016-08-30 13:06:26 -04:00
..
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
jsonpath.go Allow missing keys in jsonpath 2016-08-30 13:06:26 -04:00
jsonpath_test.go Allow missing keys in jsonpath 2016-08-30 13:06:26 -04:00
node.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
parser.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
parser_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00