title: How to get key from JSON file using jQuery
body: <p>I have one JSON file sample</p>
  <pre><code>{a:'spc432',
   b:'lll432'
  }
  </code></pre>
  <p>I am trying to get JSON file from client side. and html also written at client side only.</p>
  <p>After that I want to find out each ID from JSON file dynamically. How can we get Ids with knowing JSON file Ids..?</p>
  <p>I tried below coding, but it is not working. Could you please check?</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;script src=&quot;http://code.jquery.com/jquery-1.5.js&quot;&gt;&lt;/script&gt;
    &lt;script&gt;
          $(document).ready(function(){
              alert(&quot;hi&quot;);
              $.get(&quot;json_text.txt&quot;, function(data) 
                      { alert(&quot;length = &quot;+data.length); 
                                            for( i = 0; i&lt; data.length; i++)
                                               alert(&quot;key name &quot;+data[i].id);
                                           }
                    );
                      
          });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>