title: Jquery -Ajax - How to read the nested JSON below
body: <p>I have the following JSON  below and here is the  <a href="http://jsfiddle.net/dev2020/52pLuj3b/3/" rel="nofollow">fiddle and actual code</a>. I'm trying to read  all values in <strong>filters</strong>  so I can display all the values individually.
   <strong>Example</strong> 
  "0.494765097719035" and 
  "Accommodations" etc separately . </p>
  
  <p>same for "azIndexDescPages"</p>
  
  <p><strong>Example 2</strong> 
  azIndexDescPages </p>
  
  <p>guid- 3B5470AA-4683-11DF-A523-8C6895261AFF</p>
  
  <p>name -Information About Impacting Trees</p>
  
  <p>shortURL- information-about-impacting-trees</p>
  
  <p>I'm a little unsure of how get these values </p>
  
  <p>How do I get the values <strong>filters</strong>, "alphabeticalGroup" and <strong>azIndexDescPages</strong> ?</p>
  
  <p>//JSON</p>
  
  <pre><code>{
      "view": "search-category",
      "keyword": "Services",
      "filters": [{
          "0.494765097719035": "Accommodations"
      }, {
          "0.7564062477523095": "Support Services"
      }, {
          "OATH": "Administrative"
      }],
      "num-results": 20,
      "data": [{
          "alphabeticalGroup": "Services and Bags",
          "azIndexDescPages": [{
              "guid": "8A5C58E6-BECE-11DC-8E9F-96DAE110FEB8",
              "name": "General Vendor ",
              "shortURL": "general-vendor",
              "parenthicalCategory1": null,
              "parenthicalCategory2": null,
              "keyword": null,
              "shortDesc": "General Vendor blah blah.",
              "isRenew": true,
              "isApply": true,
              "descAmbiguousPages": null
          }]
      }, {
          "alphabeticalGroup": "Bages",
          "azIndexDescPages": [{
              "guid": "3B5470AA-4683-11DF-A523-8C6895261AFF",
              "name": "Information About Impacting Lorem",
              "shortURL": "information-about-lorem",
              "parenthicalCategory1": null,
              "parenthicalCategory2": null,
              "keyword": null,
              "shortDesc": "Lorem IPSUM Lorem IPSUM, etc.",
              "isRenew": null,
              "isApply": null,
              "descAmbiguousPages": null
          }, {
              "guid": "F560F636-4682-11DF-91AF-EA6C84051BF5",
              "name": "lorem ipsum 3",
              "shortURL": "information-about-lorem-ipsum-3",
              "parenthicalCategory1": null,
              "parenthicalCategory2": null,
              "keyword": null,
              "shortDesc": "New new new lorem ipsum.",
              "isRenew": null,
              "isApply": null,
              "descAmbiguousPages": null
          }]
      }]
  }
  </code></pre>
  
  <p>//JavaScript</p>
  
  <pre><code> function ajaxProcess() {
  
          var searchTerm = $("#term").val(); // get the user-entered search term on Enter key
          var URL2 = '/json/search-category-view.json';
          var tags = "&amp;tags=" + searchTerm;
          //var tagmode="&amp;tagmode=any";
          var jsonFormat = "&amp;format=json";
          var ajaxURL = URL2 + "?" + tags + jsonFormat;
  
  
          $.ajax({
              url: ajaxURL,
              dataType: "json",
              //jsonp:"jsoncallback",
              success: function(data, textStatus, jqXHR) {
  
                  console.log("Data " + data);
                  //var jsonData = $.parseJSON(data);
                  console.log("data, textStatus, jqXHR " + data + textStatus + jqXHR)
  
                  $.each(data, function(i, result) {
                      console.log(" i" + [i] + " --" + result);
                      console.log(" &lt;br\&gt;" + [i] + " --" + result.filters);
                      //if (result.filters) {
                          // html += '&lt;div class="quote"&gt;';
                          $.each(data.filters, function(i, filter) {
                              console.log("&lt;br&gt;  filter " + [i] + " --" + filter['i']);
                              //html += '&lt;div class="quote-line"&gt;' + line + '&lt;/div&gt;';
                          });
  
                          $.each(data.data, function(k, data) {
                              console.log("&lt;br&gt; Data alphabeticalGrou " + [k] + " --" + data.alphabeticalGroup);
                              console.log("&lt;br&gt; Data azIndexDescPages" + [k] + " --" + data.azIndexDescPages);
                              //html += '&lt;div class="quote-line"&gt;' + line + '&lt;/div&gt;';
                          });
  
  
                     // }
  
  
  
                      var searchResult = "";
                      searchResult += "&lt;br&gt;" + result[i] + "ss " + i;
                      searchResult += "&lt;br&gt; keyword-- " + this['keyword'];
  
                      $("#gallery").append(searchResult).fadeIn(200);
  
  
  
                  });
  
              },
              error: function(jqXHR, textStatus, errorThrown) {
                  console.log('FAILED to get  JSON from AJAX call' + jqXHR + textStatus + errorThrown);
  
              }
          });
  
  
      }
  </code></pre>