title: Checking whether the json response is right or not
body: <p>I get a json response from my server.</p>
  
  <pre><code>{
      "@type": "res",
      "createdAt": "2014-07-24T15:26:49",
      "description": "test",
      "disabled": false
  }
  </code></pre>
  
  <p>How can i test whether the <code>response</code> is <code>right</code> or <code>wrong</code>. Below is my test case.</p>
  
  <pre><code>it "can find an account that this user belongs to" do 
      Account.find(id: @acc.id, authorization: @token);
  
      expect(response.status).to eq 200
      expect(response.body).to eq({
        "@type": "res",
        "createdAt": "2014-07-24T15:26:49",
        "description": "test",
        "disabled": false
      })
  end
  </code></pre>
  
  <p>When i try to execute the test, it throws me a lot of syntax error.</p>