title: Parsing arrays in logic apps
body: <p>I have a JSON schema that looks like this:</p>
  
  <pre><code>InputParameters": [
  {
    "key": "Target",
    "value": {
      "__type": "Entity:http://schemas.microsoft.com/xrm/2011/Contracts",
      "Attributes": [
        {
          "key": "prioritycode",
          "value": {
            "__type": "OptionSetValue:http://schemas.microsoft.com/xrm/2011/Contracts",
            "Value": 1
          }
        },
        {
          "key": "completeinternalreview",
          "value": false
        },
        {
          "key": "stepname",
          "value": "1-Lead"
        }
      ]
    }
  }
  ]
  </code></pre>
  
  <p>This is from a CRM message that gets read off a queue.</p>
  
  <p>What is the best way to read the key value pairs? Seems like there is no way to do nested for loops if you have nested arrays.</p>
  
  <p>Can I use function apps with JSON.NET to do some funky stuff instead?</p>