Query Type : Infinity
Type : JSON
Parser : Backend
Source : URL
Method : GET
URL : /adaptations/madtns/objects/MADTNS-NRGN-2
In the “Parsing options and Result fields” → Rows/Root , I am using the following expression
$.content[dn=“PLMN-PLMN/NSPQ-1/NRGN-CENTRAL”].id
where “content” is the root of the JSON array .
This works fine and fetches the “id” field correctly for me.
But instead of the hardcoded “dn” value , I need to pass a variable as the “dn” value.
I stored the value in a custom variable “dnvalue” and when I pass that variable name as the “dn” value , it is not able to resolve ..
Something like below
$.content[dn=$dnvalue].id
How do I pass the variable as the “dn” value in such an expression …