title: jQuery parseJSON Multidimensional-array
body: <p>I have PHP outputting a JSON multidimensional array as follows:</p>
  
  <pre><code>{"rates":[{"meter":"30","rate":"0.15060","ppd":"10.000"}]}
  </code></pre>
  
  <p>However, I keep getting an error when trying to decode it on the JavaSCript side of things.</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'length' of null
  </code></pre>
  
  <p>Here is the code below for the jQuery side of things:</p>
  
  <pre><code>success: function (result) {
      console.log(result);
      $.each($.parseJSON(result), function (item, value) {
          if (item == "rates") {
              $.each($.parseJSON(value), function (i, object) {
                  console.log(i + "=" + object);
              });
          }
  </code></pre>
  
  <p>The 1st console log gives me the output I mentioned at the top, but for some reason i am not able to access the array as I thought I would.</p>
  
  <p>Any help is greatly appreciated :)</p>