title: Jquery Json dynamic variable name generation
body: <p>I make a jquery .ajax call and I'm expecting a json result.
  The catch is, if there are say 5 authors, I'll get author_details_0, author_details_1, author_details_2, etc.... How can I dynamically construct the name of the variable to retrieve from json ? I don't know how many authors I'll get, there could be hundreds.</p>
  
  <pre><code>$.ajax({
  type: "POST",
  url: "/authordetails/show_my_details/",
  data: af_pTempString,
  dataType: "json",
  beforeSend: function() {
  },
  success: function(jsonData) {
      console.log("Incoming from backend : " + jsonData.toSource());
      if(jsonData.AuthorCount)
      {
          console.log("Number of Authors : " + jsonData.AuthorCount);
          for (i = 0; i &lt; jsonData.AuthorCount; i++)
          {
              temp = 'author_details_' + i; &lt;-------------------This is the name of the variable I'm expecting.
              console.log("Farm information : " + eval(jsonData.temp) ); &lt;----- This doesn't work, how can I get jsonData.author_details_2 for example, 'coz I don't know how many authors are there, there could be hundreds.
          }
      }
  </code></pre>
  
  <p>Please let me know if you have any idea how to solve this !
  Much appreciated.</p>