title: Parsing JSON to HTML table using jQuery
body: <p>I am using below code to parse a JSON file, but I am getting undefined in each table column.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      $(document).ready(function () {
          var json = [{
  
     "RATE_UPLOAD_DATE": "07/01/2015 8:17 AM CT",
  
     "GROUPS": [
  
        {
  
           "NAME": "Conforming Fixed Rate Mortgage  Purchase",
  
           "PRODUCT": [
  
              {
  
                 "DESCR": "30 Year Fixed Rate",
  
                 "RATE": "4.25",
  
                 "APR": "4.277",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444902&amp;ResultId=58"
  
              },
  
              {
  
                 "DESCR": "20 Year Fixed Rate",
  
                 "RATE": "4.125",
  
                 "APR": "4.162",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444902&amp;ResultId=52"
  
              },
  
              {
  
                 "DESCR": "15 Year Fixed Rate",
  
                 "RATE": "3.375",
  
                 "APR": "3.422",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444902&amp;ResultId=45"
  
              }
  
           ]
  
        },
  
        {
  
           "NAME": "Conforming Adjustable Rate Mortgage  Purchase",
  
           "PRODUCT": [
  
              {
  
                 "DESCR": "3/1 Fully Amortizing ARM",
  
                 "RATE": "3.625",
  
                 "APR": "3.166",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444913&amp;ResultId=27"
  
              },
  
              {
  
                 "DESCR": "5/1 Fully Amortizing ARM",
  
                 "RATE": "3.25",
  
                 "APR": "3.113",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444913&amp;ResultId=13"
  
              },
  
              {
  
                 "DESCR": "7/1 Fully Amortizing ARM",
  
                 "RATE": "3.5",
  
                 "APR": "3.258",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444913&amp;ResultId=5"
  
              },
  
              {
  
                 "DESCR": "10/1 Fully Amortizing ARM",
  
                 "RATE": "3.75",
  
                 "APR": "3.487",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444913&amp;ResultId=65"
  
              }
  
           ]
  
        },
  
        {
  
           "NAME": "Jumbo Fixed Rate  Purchase",
  
           "PRODUCT": [
  
              {
  
                 "DESCR": "30 Year Fixed Rate",
  
                 "RATE": "4.25",
  
                 "APR": "4.265",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444921&amp;ResultId=6"
  
              },
  
              {
  
                 "DESCR": "15 Year Fixed Rate",
  
                 "RATE": "3.5",
  
                 "APR": "3.526",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444921&amp;ResultId=30"
  
              }
  
           ]
  
        },
  
        {
  
           "NAME": "Jumbo Adjustable Rate Mortgage  Purchase",
  
           "PRODUCT": [
  
              {
  
                 "DESCR": "3/1 Fully Amortizing ARM",
  
                 "RATE": "2.75",
  
                 "APR": "2.959",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444935&amp;ResultId=56"
  
              },
  
              {
  
                 "DESCR": "5/1 Fully Amortizing ARM",
  
                 "RATE": "3",
  
                 "APR": "3.014",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444935&amp;ResultId=45"
  
              },
  
              {
  
                 "DESCR": "7/1 Fully Amortizing ARM",
  
                 "RATE": "3.25",
  
                 "APR": "3.13",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444935&amp;ResultId=37"
  
              },
  
              {
  
                 "DESCR": "5/1 Interest Only ARM",
  
                 "RATE": "3.125",
  
                 "APR": "3.055",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444935&amp;ResultId=13"
  
              },
  
              {
  
                 "DESCR": "10/1 Fully Amortizing ARM",
  
                 "RATE": "3.5",
  
                 "APR": "3.32",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444935&amp;ResultId=22"
  
              }
  
           ]
  
        },
  
        {
  
           "NAME": "Conforming Fixed Rate Mortgage  Refinance",
  
           "PRODUCT": [
  
              {
  
                 "DESCR": "30 Year Fixed Rate",
  
                 "RATE": "4.375",
  
                 "APR": "4.402",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444940&amp;ResultId=62"
  
              },
  
              {
  
                 "DESCR": "20 Year Fixed Rate",
  
                 "RATE": "4.25",
  
                 "APR": "4.287",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444940&amp;ResultId=55"
  
              },
  
              {
  
                 "DESCR": "15 Year Fixed Rate",
  
                 "RATE": "3.5",
  
                 "APR": "3.547",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444940&amp;ResultId=47"
  
              }
  
           ]
  
        },
  
        {
  
           "NAME": "Conforming Adjustable Rate Mortgage  Refinance",
  
           "PRODUCT": [
  
              {
  
                 "DESCR": "3/1 Fully Amortizing ARM",
  
                 "RATE": "3.75",
  
                 "APR": "3.194",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444949&amp;ResultId=30"
  
              },
  
              {
  
                 "DESCR": "5/1 Fully Amortizing ARM",
  
                 "RATE": "3.375",
  
                 "APR": "3.157",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444949&amp;ResultId=15"
  
              },
  
              {
  
                 "DESCR": "7/1 Fully Amortizing ARM",
  
                 "RATE": "3.625",
  
                 "APR": "3.317",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444949&amp;ResultId=6"
  
              },
  
              {
  
                 "DESCR": "10/1 Fully Amortizing ARM",
  
                 "RATE": "3.875",
  
                 "APR": "3.566",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444949&amp;ResultId=70"
  
              }
  
           ]
  
        },
  
        {
  
           "NAME": "Jumbo Fixed Rate  Refinance",
  
           "PRODUCT": [
  
              {
  
                 "DESCR": "30 Year Fixed Rate",
  
                 "RATE": "4.375",
  
                 "APR": "4.39",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444962&amp;ResultId=6"
  
              },
  
              {
  
                 "DESCR": "15 Year Fixed Rate",
  
                 "RATE": "3.625",
  
                 "APR": "3.651",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444962&amp;ResultId=30"
  
              }
  
           ]
  
        },
  
        {
  
           "NAME": "Jumbo Adjustable Rate Mortgage  Refinance",
  
           "PRODUCT": [
  
              {
  
                 "DESCR": "3/1 Fully Amortizing ARM",
  
                 "RATE": "2.875",
  
                 "APR": "2.986",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444969&amp;ResultId=56"
  
              },
  
              {
  
                 "DESCR": "5/1 Fully Amortizing ARM",
  
                 "RATE": "3.125",
  
                 "APR": "3.058",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444969&amp;ResultId=45"
  
              },
  
              {
  
                 "DESCR": "7/1 Fully Amortizing ARM",
  
                 "RATE": "3.375",
  
                 "APR": "3.188",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444969&amp;ResultId=37"
  
              },
  
              {
  
                 "DESCR": "5/1 Interest Only ARM",
  
                 "RATE": "3.25",
  
                 "APR": "3.097",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444969&amp;ResultId=13"
  
              },
  
              {
  
                 "DESCR": "10/1 Fully Amortizing ARM",
  
                 "RATE": "3.625",
  
                 "APR": "3.397",
  
                 "POINTS": "0",
  
                 "&lt;PAYMENT_STREAM_URL&gt;": "https://publicservices.mortgagewebcenter.com/PaymentStream.aspx?CobranderId=1152&amp;CriteriaId=113444969&amp;ResultId=22"
  
              }
  
           ]
  
        }
  
     ]
  
  }];
          var tr;
          for (var i = 0; i &lt; json.length; i++) {
              tr = $('&lt;tr/&gt;');
              tr.append("&lt;td&gt;" + json[i].DESCR + "&lt;/td&gt;");
              tr.append("&lt;td&gt;" + json[i].RATE + "&lt;/td&gt;");
              tr.append("&lt;td&gt;" + json[i].APR + "&lt;/td&gt;");
              tr.append("&lt;td&gt;" + json[i].POINTS + "&lt;/td&gt;");
              $('table').append(tr);
          }
      });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;PRODUCT&lt;/th&gt;
          &lt;th&gt;RATE&lt;/th&gt;
          &lt;th&gt;APR*&lt;/th&gt;
          &lt;th&gt;POINTS&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>