JSON Array - Insert

I have an array which already has 4 values by default in the appsettings.json file

I am able to replace those with variables

variable:0 = value
variable:1 = value
variable:2 = value
variable:3 = value

I assumed by adding variable:4 = value it would insert another value for me. Checking the deployment logs there’s no errors so not sure where I’m going wrong.

Could you please assist?



Hi Daniel,

Thanks for getting in touch!

I don’t believe it is possible to add additional values but I can run some testing on this to confirm.
Which feature were you using to perform the variable replacement? I assume it was Structured configuration variables (or JSON Configuration Variables depending on your Octopus version)?


Hi Paul,

Thanks for the quick response. Yeah that’s correct I’m using Structured Configuration variables



It does seem that we are only performing a swap of values that already exist. It isn’t able to add new items to an array, unfortunately.

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