title: Send two lists by Json and Get it from Array on JavaScript
body: <p>I have two lists on my controller and I send that lists as ARRAY in a json to JavaScript. </p>
  
  <p>See my Controller code here:</p>
  
  <pre><code>var aval = new List&lt;AvaliacaoViewModel&gt;();
  aval = relData.GetAvaliacao(data_1, data_2, cliente, operador);
  
  var resumo = new List&lt;ResumoViewModel&gt;();
  resumo = relData.GetResumo(data_1, data_2, cliente, operador);               
  
  var result = new { aval = aval, resumo = resumo };
  return Json(result, JsonRequestBehavior.AllowGet);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fKnO3.jpg" rel="nofollow noreferrer">My list1 - Controller-1</a></p>
  
  <p><a href="https://i.stack.imgur.com/D7dVD.jpg" rel="nofollow noreferrer">My list2 - COntroller-2</a></p>
  
  <p>Its working fine and I can see two ARRAYS on JavaScript:</p>
  
  <pre><code>$.ajax({
              url: '/Relatorios/AvalOperador',
              dataType: "json",
              type: "GET",
              data: { 'data1': data1, 'data2': data2, 'operador': operador },
              success: function (data) {                   
  
              debugger;
  
              var aval1 = avalia.getValue(1);
              var aval2 = avalia.getValue(2);
              var aval3 = avalia.getValue(3);
              var aval4 = avalia.getValue(4);
  </code></pre>
  
  <p>Now I need...</p>
  
  <p>Get data from list1 (controller1) and put it on 4 strings, like:</p>
  
  <pre><code>var avalia1 = column[1].toString();
  var avalia1 = column[2].toString();
  var avalia1 = column[3].toString();
  var avalia1 = column[4].toString();
  </code></pre>
  
  <p>And the Second List/Array pass it to a HTML Table</p>
  
  <pre><code> &lt;table class="table table-striped"&gt;
       &lt;thead&gt;
           &lt;tr&gt;
               &lt;th&gt;Cod&lt;/th&gt;
               &lt;th&gt;Operador&lt;/th&gt;
               &lt;th&gt;Qtde&lt;/th&gt;
               &lt;th&gt;Pie &lt;/th&gt;
           &lt;th&gt;Status&lt;/th&gt;
  
           &lt;/tr&gt;
       &lt;/thead&gt;
       &lt;tbody&gt;
           &lt;tr&gt;
               &lt;td&gt;3120&lt;/td&gt;                                           
               &lt;td&gt;Patrick Smith&lt;/td&gt;
               &lt;td&gt;2&lt;/td&gt;                                           
               &lt;td&gt;&lt;span class="pie"&gt;85/100&lt;/span&gt;&lt;/td&gt;
               &lt;td&gt;85%&lt;/td&gt;                                                                                   
           &lt;/tr&gt;                                                                   
       &lt;/tbody&gt;
   &lt;/table&gt;
  </code></pre>
  
  <p>Console Stringfy:</p>
  
  <p>{"aval":[{"Total":160,"Avalia1":25,"Avalia2":88.75,"Avalia3":73.13,"Avalia4":86.88}],"resumo":[{"Cod":"1195","Qtde":25,"Result":62},{"Cod":"1458","Qtde":15,"Result":73.33},{"Cod":"1722","Qtde":3,"Result":58.33},{"Cod":"2246","Qtde":5,"Result":65},{"Cod":"2509","Qtde":16,"Result":62.5},{"Cod":"2769","Qtde":3,"Result":100},{"Cod":"2918","Qtde":4,"Result":68.75},{"Cod":"3473","Qtde":9,"Result":66.67},{"Cod":"5044","Qtde":8,"Result":81.25},{"Cod":"5297","Qtde":11,"Result":65.91},{"Cod":"5463","Qtde":2,"Result":100},{"Cod":"5751","Qtde":4,"Result":75},{"Cod":"5967","Qtde":5,"Result":75},{"Cod":"6211","Qtde":7,"Result":60.71},{"Cod":"6558","Qtde":8,"Result":53.13},{"Cod":"7284","Qtde":2,"Result":75},{"Cod":"7939","Qtde":17,"Result":67.65},{"Cod":"7988","Qtde":16,"Result":76.56}]}</p>