title: Parse Json object
body: <p>I have a following Json object:</p>
  
  <pre><code>data = [{"$id":"1","ID":2,"Name":"Exceptional trip to ZG"}]
  </code></pre>
  
  <p>I need to parse it so I can display individual attributes on my webpage.</p>
  
  <p>I tried using this code:</p>
  
  <pre><code>var lang = '';
  var obj = $.parseJSON(data);
        $.each(obj, function() {
        lang += this['ID'] + "&lt;br/&gt;";
    });
    $("#mybox1").html(lang);
  </code></pre>
  
  <p>but it doesn't work as $.parseJSON expects Json string like this one:</p>
  
  <p><code>[{"$id":"1","ID":2,"Name":"Exceptional trip to ZG"}]</code> - same only with quotation marks around it. This code works perfectly with Json string.                             </p>