title: Parsing of JSON data in javascript
body: <p>I am bit new to JSON.  The JSON file once retrieved from the server, looks like below. </p>
  
  <pre><code>{ success: true,
    message: null,
    result: 
     { employee1: 
        { name: 'Herry B',
          abbr: 'Hb',
          age: 43,
          salary: 13473.50,
          address: 'xxxdrer43erered drdre' },
       employee2: 
        { name: 'Sam R',
          abbr: 'Sr',
          age: 41,
          salary: 2561.52,
          address: 'fdre43n43 43h43 fd' },
       employee3: 
        { name: 'Rita H',
          abbr: 'Rh',
          age: 37,
          salary: 36923.43,
          address: 'dsfaz34n3  343z4 3' },
       employee4: 
        { name: 'Suman B',
          abbr: 'Sb',
          age: 25,
          salary: 1942.45,
          address: 'dfasru34 343r ' }
    } 
  }
  </code></pre>
  
  <p>I have a ajax which looks like below:</p>
  
  <pre><code>function() {
        var jsonData = $('#json-data');
  
        var employeeData = "https://amstar.eu/employee_data";
        $.getJSON( employeeData, {
            format: "json"
          })
          .done(function( data ) {
  
            jsonData.empty();
  
            var output = "&lt;div&gt;&lt;table border=\"1\"&gt; &lt;tr&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th&gt;Abbr&lt;/th&gt; &lt;th&gt;Age&lt;/th&gt; &lt;th&gt;Salary&lt;/th&gt; &lt;th&gt;Address&lt;/th&gt; &lt;tr&gt;&lt;/tr&gt;"
  
            for( row in data.result )
            {
              ........
  
              output += '&lt;tr&gt;&lt;/tr&gt;';
            }
            output += '&lt;/tr&gt; &lt;/table&gt; &lt;/div&gt;';
  
            jsonData.innerHTML(output);  
            });
      })
  </code></pre>
  
  <p>The "........" part is where the problem is.  I cannot move forward on how to process the data. The <strong>row</strong> gives me "employee1", "employee2", ... but dont know how to get the details of each employee and print. </p>
  
  <p>Can someone help here?</p>