title: How do I parse a JSON multidimensional array in jQuery?
body: <p>Here is my JSON which I need to parse:</p>
  
  <pre><code>{"opcode":"groupdetails",
   "status":"success",
   "data":[{"Group ID":5,"Group Name":"data structure","Group Subject":"computer science","Role Type":"Teacher"},{"Group ID":4,"Group Name":"information technology","Group Subject":"computer science","Role Type":"Student"},{"Group ID":6,"Group Name":"data mining","Group Subject":"computer science","Role Type":"Parent"},{"Group ID":7,"Group Name":"dccn","Group Subject":"computer science","Role Type":"Teacher"}]}
  </code></pre>
  
  <p>I have tried and implemented the solution provided <a href="https://stackoverflow.com/questions/2487841/jquery-parse-json-multidimensional-array">here</a> and this is the implementation of JS that was defined in there solution, <strong>which parses only the JSON array</strong></p>
  
  <pre><code>for (var i = 0; i &lt; data.data.length; i++) 
   {
      var object = data.data[i];
       for (property in object) 
       {
          var value = object[property];
          alert(property + "=" + value);
       }
   }
  </code></pre>
  
  <p>the outer JSON <strong>data</strong> is returned from server and yes I have tried parsing using the following code and there is no result:</p>
  
  <pre><code>for (var i = 0; i &lt; data.length; i++) 
  {
   var object = data[i];
   for (property in object) 
   {
      var value = object[property];
      alert(property + "=" + value);
   }
  }
  </code></pre>
  
  <p>How can I parse the entire JSON using a single method instead of parsing the JSON array separately?</p>