title: How load json data on table using datatables?
body: <p>I'm trying load json data on table using <a href="http://datatables.net/" rel="nofollow">datatables</a></p>
  
  <p>The return of json from php is like this:</p>
  
  <pre><code>data = {
    "CLIENTES": {
      "0": {
        "ID": "1",
        "NOME": 'GABRIEL'
      },
      "1": {
        "ID": "2",
        "NOME": 'RODRIGUES'
      }
    }
  }
  </code></pre>
  
  <p>In the documentation <a href="http://datatables.net/reference/option/columns.data#string" rel="nofollow">columns data</a> they say that I need to follow this structure:</p>
  
  <pre><code>table.DataTable({
    "ajax": url,
    columns: [
      {"data": "CLIENTES.ID"},
      {"data": "CLIENTES.NOME"}
    ]
  });
  </code></pre>
  
  <p>But dont work, and  we know that the right acess to de data index is this way:</p>
  
  <pre><code>{"data": "CLIENTES['0'].ID"},
  {"data": "CLIENTES['1'].ID"},
  </code></pre>
  
  <p>But need's to be dynamically, how can I do this?</p>