title: Check if JSON response data is empty
body: <p>The JSON response looks like this when it is empty when viewed in the browser console:</p>
  
  <pre><code>{"data":{},"status":200,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"http://url/form/BN217473","headers":{"Accept":"application/json, text/plain, */*"}},"statusText":"","xhrStatus":"complete"}
  </code></pre>
  
  <p>In angular script I am checking if the response is empty but the check is not catching the empty response as the logic block is never executed</p>
  
  <pre><code>if (response.data == '') {
      console.log("no data found");
  }
  </code></pre>
  
  <p>How can I check that my response is not empty?</p>