Go to All Forums

JSONpath documentation

Please add some documentation for the jsonpath expression in the REST API monitor. 

I've been blindly trying some options, but having no luck. Coming from APIScience I need checks like "$.data.results[0].summaryText.length() > 10", are these possible in jsonpath? I've seen mixed results on the web from the different jsonpath implementations.

 

Thanks,

Vaughn

Like (2) Reply
Replies (2)

Re: JSONpath documentation

Hi Vaughn,
  We use the Jayway jsonpath syntax. We use this library in our servers. You can try evaluating your expression in this tool https://jsonpath.herokuapp.com
 
 
-Jasper
Like (2) Reply

Re: Re: JSONpath documentation

Hi, I'm running into the same issue, I need the monitor to verify that the length of an array is 0, but I can't find a way to express this in the API monitor configuration

 

Thanks

Like (0) Reply

Was this post helpful?