title: Populate Dojo's datagrid with JsonRest and custom json arrays
body: <p>I have a grid that I am creating drawing off a JSON data source that is formatted like this:</p>
  
  <pre><code>[{"user":{"username":"foo","url":"bar"}},
     [{"product":{"name":"banana","price":"85"}},
      {"product":{"name":"peach","price":"66"}},
      {"product":{"name":"strawberry","price":"78"}}
     ]
  ]
  </code></pre>
  
  <p>But I cannot figure out how to tell datagrid to use the contents of the products to populate the datagrid. Here is my datagrid code:</p>
  
  <pre><code>        &lt;script&gt;
          require(["dojo/store/JsonRest"], function (JsonRest) {
              myStore = new JsonRest({ target: 'myurl', handleAs: 'json'
              });
          });
  
          require(["dojox/grid/DataGrid", "dojo/data/ObjectStore", "dojo/domReady!"
          ], function (DataGrid, ObjectStore) {
              grid = new DataGrid({
                  store: dataStore = new ObjectStore({ objectStore: myStore }),
                  structure: [
                      { name: "Procuct", field: "name", width: "200px" }
                  ]
              }, "grid3");
  
              grid.startup();
  
          });
      &lt;/script&gt;
      &lt;div id="grid3"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I do not get any error, but I cannot see that the grid gets populated.</p>
  
  <p>It is a similar question to <a href="https://stackoverflow.com/questions/13226264/using-dojos-dgrid-jsonrest-and-subrows-arrays">THIS</a>, but the data structure is a bit different.</p>