title: Pivoting JSON Data Rows into Column
body: <p>I need Help in Following.
  I have data like</p>
  
  <pre><code>[{
  "id": "0001",
  "type": "donut",
  "name": "Cake",
  "topping":
      [
          { "id": "5003", "type": "Chocolate" },
          { "id": "5004", "type": "Maple" }
      ]
  }]
  </code></pre>
  
  <p>I want to Convert this into following</p>
  
  <p><a href="https://i.stack.imgur.com/7N4GA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7N4GA.png" alt="enter image description here"></a></p>
  
  <p>Parameters will be dynamic or Multiple, not just Chocolate and Maple )</p>
  
  <p>I want to create a stream analytics query who deals with this data and store into the Destination table who have this columns already like Id, Name, Type, Chocolate, Maple......
  Please Help me in this.</p>