You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The document block states that I should @return mixed Returns the matching data or null receive matching data or null but I have found that when I utilise this with object or list projection like:
included[?type=='paragraph--basic_text'] as long as the included array exists in the JSON, it will return an empty array rather than a NULL value.
Can I confirm that this is the expected behaviour?
Checking the tutorial website I get the same result in different versions of jmespath.
Thank you very much for the package. I am utilising it in integration testing to evaluate json responses which is incredibly useful.
The text was updated successfully, but these errors were encountered:
I just wanted to confirm / point out that I am receiving back a value from the below method that is different from the code comments:
\JmesPath\Env::search($expression, $data);
https://github.com/jmespath/jmespath.php/blob/master/src/Env.php#L25
The document block states that I should
@return mixed Returns the matching data or null
receive matching data or null but I have found that when I utilise this with object or list projection like:included[?type=='paragraph--basic_text']
as long as the included array exists in the JSON, it will return an empty array rather than a NULL value.Can I confirm that this is the expected behaviour?
Checking the tutorial website I get the same result in different versions of jmespath.
Thank you very much for the package. I am utilising it in integration testing to evaluate json responses which is incredibly useful.
The text was updated successfully, but these errors were encountered: