Hi,
I am trying to develop an Apigee proxy using Edge where the request to the proxy is a Json body that looks something like
{
"Proxy":
[
{"name":"Proxy1", "Param1":false, "Param2":"false"},
{"name":"Proxy2", "Param1":true, "Param2":"false"}
{"name":"Proxy3", "Param1":false, "Param2":"true"},
{"name":"Proxy4", "Param1":true, "Param2":"true"}
........
{"name":"ProxyN", "Param1":true, "Param2":"true"}
]
}
And the proxy need to pick all the values from the Json body and update a KVM with name attribute to Key and Param1 and Param2 as respective value pairs. Like below.
KEY VALUE
Proxy1 false, false
Proxy2 true, false
Proxy3 false, true
Proxy4 true, true
......
ProxyN true, true
I am trying with extract variables but the values in Json are dynamic meaning there can be one entry or N entries. Can someone suggest how can I achieve this?
Thanks