title: Boost ptree node for all children in a json array
body: <p>I have been searching for an answer to this but cant find anything so sorry if this has been asked before. I have the following json file</p>
  
  
  
  <pre class="lang-boost prettyprint-override"><code>{"GuiComponents": [
  {
      "GuiComponent":
      {
          "screen": "WindowMain",
          "type": "class Robot",
          "filename": "robot.mesh",
          "blueprint": "Betplacement/Robot.json",
          "layer": "0",
          "position": 
          {
              "x": "0",
              "y": "0"
          }
      }
  },
  {
      "GuiComponent": 
      {
          "screen": "WindowTop",
          "type": "class Robot",
          "filename": "robot.mesh",
          "blueprint": "Betplacement/Robot.json",
          "layer": "0",
          "position": 
              {
              "x": "0",
              "y": "0"
              }
          }
      }
  ]
  }   
  </code></pre>
  
  <p>Now I want to iterate over all the children in GuiComponents called GuiComponent and assign each child to a ptree node. This way I can simply pass a ptree node to anyone that wants to get the data for a specific GuiComponent without seeing all the other children. I cannot find a way to do this with get_child as it just throws a "No such node GuiComponent" exception.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks</p>