JSON array config replacement using variables

pc2's Avatar


19 Feb, 2018 02:25 PM

I'm looking to create some variables to replace JSON configuration I have in my appsettings file with the main issue being how to replace JSON containing an array of objects.

I understand how to do this using a single variable but unsure how to do it using multiple variables or indeed if thats possible. My config is shown below, can anyone provide some assistance with this?

"ProviderConfiguration": [
      "Name": "Service1",
      "Id": "C591124F-9B97-4B50-8C19-F3F41A4D805C",
      "Category": 1,
      "ProductType": 7
      "Name": "Service2",
      "Id": "FBBBEECF-9447-474B-BBE5-AF5F71DE14A0",
      "Category": 1,
      "ProductType": 8
      "Name": "Service3",
      "Id": "1E81BE66-B3DD-4873-9687-5D467676FE8F",
      "Category": 2,
      "ProductType": 25
      "Name": "Service4",
      "Id": "3b7b0304-e888-4e1c-ae17-2b34cf45c9f7",
      "Category": 3,
      "ProductType": 0
      "Name": "Service5",
      "Id": "BE1F040A-1FFA-404F-B79B-259C79846953",
      "Category": 4,
      "ProductType": 12
  1. Support Staff 1 Posted by Reece Walsh on 20 Feb, 2018 05:18 AM

    Reece Walsh's Avatar


    This ticket has been found to be a duplicate,

    Please navigate to the below ticket for a response;


    Kind Regards,


  2. pc2 closed this discussion on 20 Feb, 2018 08:30 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac