title: Conditional jsonpath expressions not working in groovy script, jmeter
body: <pre><code>Conditional jsonpath expression: 
      $.[?(@.identifier == "369")]..columns.[?(@.type == "relationship")].token
  </code></pre>
  
  <ul>
  <li>Problem 01: groovy script in jsr233 post processor not parsing the jsonpath expression.</li>
  <li>Problem 02: I need to loop identifier value in groovy or beanshell and fetch multiple array.</li>
  </ul>
  
  <pre><code>import groovy.json.JsonSlurper
  
  JsonSlurper slurper = new JsonSlurper()
  Map parsedJson = slurper.parseText(prev.getResponseDataAsString())
  
  //String idval = parsedJson.sections[1].id
  
  //String idval = parsedJson.[?(@.identifier == "369")]..columns.[?(@.type == "relationship")].token //trail 01 -failed at .[
  
  String idval = parsedJson./[?(@.identifier == "369")]/..columns./[?(@.type == "relationship")]/.token  //trail 02 -no such property: columns for class
  
  log.info(""+idval);
  </code></pre>