JSON Config Variables array with in an array example

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”]
]
}
]
}

Hi Jijo,

Thanks for getting in touch,

It’s definetly possible to manage this within Octopus.

I’ve included a link to our documentation below regarding this; (The link includes a re-direct to the relevant section)

I’d recommend reading the aforementioned documentation for further information.

I hope this helps!

If you require any further assistance or clarification, please let me know :slight_smile:

Kind Regards,

Reece

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.