We are trying to use JSON configuration variable feature to substitute an array into JSON through Octobus variable. One issue what we have is we have an array inside another array as you can see from the below JSON.
What we currently have is a variable #{Routing.Bymethod1}
and passing the whole value [{“Url”: “https://abc.com/","Matches”: [ “x,y,z”]}] which is working .
Wanted to know whether there is a way by which we can transform the values second array Matches with a variable rather than passing the whole value.
Routing": {
“Bymethod1”: [
{
“Url”: “www.cnn.com”,
“Matches”: [ “1”,“2”,“3”]
]
}
]
}