phantom/bindings.js
function getContent() {
      var h = pageInformation.response.headers || {};
      if (/json/.test(h['content-type'])) {
        try {
          return JSON.parse(page.plainText);
        }
        catch (e) {
          return page.content;
        }
      }
      else {
        return page.content;
      }
    }
function getContent() {
      var h = pageInformation.response.headers || {};
      if (/json/.test(h['content-type'])) {
        try {
          return JSON.parse(page.plainText);
        }
        catch (e) {
          return page.content;
        }
      }
      else {
        return page.content;
      }
    }
function getContent ( ) { var h = pageInformation . response . headers || { } ; if ( / json / . test ( h [ 'content-type' ] ) ) { try { return JSON . parse ( page . plainText ) ; } catch ( e ) { return page . content ; } } else { return page . content ; } }
Helpers
 Get correct page content
Helpers Get correct page content