I am trying to dynamically substitute the value 'US' in the below expression. where in configs is an array not a json object.
* def selectedConfig= $configs[?(@.configId=='US')]
#this above one works
But I am not successful making it a dynamic expression. I tried the below variant and fe, please help
* def activeConfigId = 'US'
* def selectedConfig= karate.jsonPath("$configs[?(@.configId=='" + activeConfigId + "')]")
I see there is someone else also asked similar question but no answer how to make this expression dynamic. Karate: parametric json path expressions