From 5dc8e9f8bf14ab9888fb905d8531cc4eb53eacf9 Mon Sep 17 00:00:00 2001 From: Sangjin Lee Date: Tue, 30 Jan 2018 13:51:32 -0800 Subject: [PATCH] Replace github.com/yalp/jsonpath with github.com/PaesslerAG/jsonpath. --- helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers.go b/helpers.go index 3e22c79bf..fac464faa 100644 --- a/helpers.go +++ b/helpers.go @@ -6,8 +6,8 @@ import ( "reflect" "regexp" + "github.com/PaesslerAG/jsonpath" "github.com/xeipuuv/gojsonschema" - "github.com/yalp/jsonpath" "github.com/yudai/gojsondiff" "github.com/yudai/gojsondiff/formatter" ) @@ -28,7 +28,7 @@ func getPath(chain *chain, value interface{}, path string) *Value { return &Value{*chain, nil} } - result, err := jsonpath.Read(value, path) + result, err := jsonpath.Get(path, value) if err != nil { chain.fail(err.Error()) return &Value{*chain, nil}