Skip to content
This repository was archived by the owner on Jun 8, 2018. It is now read-only.

If response is json: #6

Open
likoo wants to merge 1 commit into
jney:masterfrom
likoo:patch-1
Open

If response is json: #6
likoo wants to merge 1 commit into
jney:masterfrom
likoo:patch-1

Conversation

@likoo
Copy link
Copy Markdown

@likoo likoo commented May 16, 2011

scrape: function (data) {
try {
var json = eval("(" + data + ')')
}
catch(e) {
return false;
}
if (json.data && json.data.status == 'OK')
return json.data.content;
else
return false;
}

scrape: function (data) {
  try {
    var json = eval("(" + data + ')')
  }
  catch(e) {
    return false;
  }
  if (json.data && json.data.status == 'OK')
    return json.data.content;
  else
    return false;
}
@jney jney closed this Mar 26, 2013
@jney jney reopened this Mar 28, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants