title: Fetching Data from JSON using jQuery
body: <p>Currently am trying to fetch data from an JSON to my SelectBox. </p>
  
  <p>Here I show its XML format, but the actual data will be in JSON format:</p>
  
  <pre><code>&lt;1&gt;
     &lt;book_able&gt;0&lt;/book_able&gt;
     &lt;CODE&gt;AF&lt;/CODE&gt;
     &lt;NAME&gt;Afghanistan&lt;/NAME&gt;
  &lt;/1&gt;
  
  &lt;2&gt;
     &lt;book_able&gt;1&lt;/book_able&gt;
     &lt;CODE&gt;AL&lt;/CODE&gt;
     &lt;NAME&gt;Albanie&lt;/NAME&gt;
  &lt;/2&gt;
  
  &lt;3&gt;
     &lt;book_able&gt;1&lt;/book_able&gt;
     &lt;CODE&gt;DZ&lt;/CODE&gt;
     &lt;NAME&gt;Algerie&lt;/NAME&gt;
  &lt;/3&gt;
  
  &lt;6&gt;
     &lt;book_able&gt;1&lt;/book_able&gt;
     &lt;CODE&gt;AS&lt;/CODE&gt;
     &lt;NAME&gt;Samoa Americaines&lt;/NAME&gt;
  &lt;/6&gt;
  </code></pre>
  
  <p>Here the numbers denote the order of the countries. But the numbers are not correctly ordered. </p>
  
  <p>For Example: After <code>&lt;1&gt;</code> the next number is <code>&lt;198&gt;</code>, so it's hard to fetch using a loop. Is there a method for this in jQuery and JSON?</p>