title: Create Node Structure From Tree Structure
body: <p>I currently have a structure like this </p>
  
  <pre><code>{
  
      "A1": {
          "B1": {
              "C1": {},
              "C2": {}
          },
          "B2": {
              "C2": {}
          }
      },
      "A2": {}
  }
  </code></pre>
  
  <p>And I want something like this</p>
  
  <pre class="lang-js prettyprint-override"><code>[
  
   {
     name: A1,
     child:[ {
              name: B1,
              child:[
                      {
                          name: C1,
                          child:[]
                      },
                      {
                          name: C2,
                          child:[]
                      }
                  ]
              },
              {
              name: B2,
              child:[
                      {
                          name: C1,
                          child:[]
                      },
                      {
                          name: C2,
                          child:[]
                      }
                  ]
              }
          ]
   },
   {
     name: A1,
     child:[] 
   }
  ]
  </code></pre>