summaryrefslogtreecommitdiffstats
path: root/pkg/jsonpath
diff options
context:
space:
mode:
authorSergey Grebenshchikov <sgreben@gmail.com>2018-03-30 21:10:19 +0200
committerSergey Grebenshchikov <sgreben@gmail.com>2018-03-30 21:10:19 +0200
commit0f9e84d2a4754c51cba79615820bcd53b0d9dd48 (patch)
treeb5c944dd43682c09dd6543831f43450a667a1ac1 /pkg/jsonpath
parentdf8bf8e12216702a3291e214624825304c3ac886 (diff)
Add heatmap plots1.1.8
Diffstat (limited to 'pkg/jsonpath')
-rw-r--r--pkg/jsonpath/jsonpath.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/jsonpath/jsonpath.go b/pkg/jsonpath/jsonpath.go
index 7ed9b16..6b11660 100644
--- a/pkg/jsonpath/jsonpath.go
+++ b/pkg/jsonpath/jsonpath.go
@@ -26,6 +26,7 @@ import (
type JSONPath struct {
name string
+ String string
parser *Parser
stack [][]reflect.Value // push and pop values in different scopes
cur []reflect.Value // current scope values
@@ -56,6 +57,7 @@ func (j *JSONPath) AllowMissingKeys(allow bool) *JSONPath {
// Parse parses the given template and returns an error.
func (j *JSONPath) Parse(text string) error {
var err error
+ j.String = text
j.parser, err = Parse(j.name, text)
return err
}