jsonpath icon indicating copy to clipboard operation
jsonpath copied to clipboard

undefined: jsonpath.PlaceholderExtension, how to fix it?

Open fengnex opened this issue 2 years ago • 1 comments

One official example of jsonpath uses jsonpath.PlaceholderExtension, but when we ran it and got an error "undefined: jsonpath.PlaceholderExtension", how to fix it?

fengnex avatar Apr 30 '23 04:04 fengnex

Not part of the project and probably a year too late, but anyway: Did you import the module correctly? What example did you use?

PlaceholderExtension() seems to be defined here: https://github.com/PaesslerAG/jsonpath/blob/master/jsonpath.go#L65-L67 so generally it should work. The tests in https://github.com/PaesslerAG/jsonpath/blob/master/placeholder_test.go show an example usage.

zeisss avatar Apr 05 '24 12:04 zeisss