title: JSON response with http, header, meta and body
body: <p>I'm developing an iPhone application with latest SDK and XCode 4.2.</p>
  
  <p>I'm trying to parse a JSON response. It is the first time I do it and I'm not sure which is the correct format from a JSON response.</p>
  
  <p>From a web service I'm getting this:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  {"rules": [
  { "id_categoria": "3","categoria": "cat03" },{ "id_categoria": "2","categoria": "cat02" }
       ]
     }&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Is it correct to find html, head, meta, and body tags in a JSON response?</p>
  
  <p>By the way, I'm using this JSON parser: <a href="https://github.com/stig/json-framework/" rel="nofollow">https://github.com/stig/json-framework/</a></p>
  
  <p>And I think JSON response it also incorrect. Its XML equivalent is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;rules&gt;
      &lt;id_categoria&gt;3&lt;/id_categoria&gt;
      &lt;categoria&gt;cat03&lt;/categoria&gt;
  &lt;/rukes&gt;
  &lt;rules&gt;
      &lt;id_categoria&gt;2&lt;/id_categoria&gt;
      &lt;categoria&gt;cat02&lt;/categoria&gt;
  &lt;/rules&gt;
  </code></pre>
  
  <p>Is this XML correct?</p>
  
  <p>I think a correct JSON response could be:</p>
  
  <pre><code>{
      "data": {
          "rules": [
              {
                  "id_categoria": "3","categoria": "cat03"
              },
              {
                  "id_categoria": "2","categoria": "cat02"
              }
          ]
      }
  }
  </code></pre>
  
  <p>Which its XML equivalent is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;data&gt;
      &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;rules&gt;
          &lt;id_categoria&gt;3&lt;/id_categoria&gt;
          &lt;categoria&gt;cat03&lt;/categoria&gt;
      &lt;/rukes&gt;
      &lt;rules&gt;
          &lt;id_categoria&gt;2&lt;/id_categoria&gt;
          &lt;categoria&gt;cat02&lt;/categoria&gt;
      &lt;/rules&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p>I'm lost. <strong>Which is the correct format for JSON Response?</strong></p>