title: In Logic Apps JSON Array while parsing throwing error for single object but for multiple objects it is working fine
body: <p>While parsing JSON in Azure Logic App in my array I can get single or multiple values/objects (Box as shown in below example)</p>
  
  <p>Both type of inputs are correct but when only single object is coming then it is <strong><em>throwing an error "Invalid type. Expected Array but got Object "</em></strong>  </p>
  
  <p><strong>Input 1 (Throwing error)  : -</strong></p>
  
  <pre><code>{ 
  
   "MyBoxCollection": 
               {
                "Box":{
                "BoxName": "Box 1"
                }
               }
  }
  </code></pre>
  
  <p><strong>Input 2 (Working Fine)  : -</strong></p>
  
  <pre><code>  { 
  
       "MyBoxCollection": 
                   [
                   {
                    "Box":{
                    "BoxName": "Box 1"
                    },
                    "Box":{
                    "BoxName": "Box 2"
                    }
                   }]
      }
  </code></pre>
  
  <p><strong>JSON Schema :</strong></p>
  
  <pre><code>"MyBoxCollection": {
            "type": "object",
            "properties": {
              "box": {
                "type": "array",
                  items": {
                  "type": "object",
                  "properties": {
                    "BoxName": {
                      "type": "string"
                    },
  ......
  .....
  ..
  }
  </code></pre>
  
  <p><strong>Error Details :-</strong> </p>
  
  <pre><code>[
    {
      "message": "Invalid type. Expected Array but got Object .",
      "lineNumber": 0,
      "linePosition": 0,
      "path": "Order.MyBoxCollection.Box",
      "schemaId": "#/properties/Root/properties/MyBoxCollection/properties/Box",
      "errorType": "type",
      "childErrors": []
    }
  ]
  </code></pre>