Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery JSON error: Syntax error, unrecognized expression
    primarykey
    data
    text
    <p>This is my first experience with using JSON so I'm probably doing something really dumb.</p> <p>I built an app to scrape pages and return a JSON object.</p> <p>My JSON returned looks like this (using Facebook as an example):</p> <pre><code>{"urlTitle":"Welcome to Facebook \u2014 Log in, sign up or learn more","urlDescription":" Facebook is a social utility that connects people with friends and others who work, study and live around them. People use Facebook to keep up with friends, upload an unlimited number of photos, post links and videos, and learn more about the people they meet."} </code></pre> <p>However, in FireBug I get the above error (also see screenshot).</p> <p>My jQuery code gets the JSON via AJAX and looks simple right now:</p> <pre><code>$("#submitButton").on("click", function(){ $.ajax({ url: '/miscellaneous/scrape/scrape.cfm', dataType: 'json', data: { strURL: $.param( $("#submitURL").attr("value") ) }, type: 'POST', success: function(data) { alert("yes!"); } }); return false; }); </code></pre> <p>I never get my success message :( Just the error!</p> <p>Am I doing something really obviously wrong here?</p> <p>Thanks, Michael.</p> <p><img src="https://i.stack.imgur.com/dRMXS.png" alt="enter image description here"></p> <p>EDIT</p> <p>Here's my entire JSON as requested:</p> <pre><code>{"urlTitle":"Welcome to Facebook \u2014 Log in, sign up or learn more","urlImages":{"image_8":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yb\/r\/GsNJNwuI-UM.gif","image_6":"http:\/\/photos-g.ak.fbcdn.net\/photos-ak-snc7\/v85005\/226\/255889644513526\/app_104_255889644513526_1061222291.png","image_7":"http:\/\/secure-us.imrworldwide.com\/cgi-bin\/m?ci=ent156564&amp;am=3&amp;ep=1&amp;at=view&amp;rt=banner&amp;st=image&amp;ca=cmp7747&amp;cr=crv72918&amp;pc=plc220331&amp;r=1346702536","image_4":"http:\/\/photos-a.ak.fbcdn.net\/photos-ak-snc7\/v85006\/156\/156324174503268\/app_104_156324174503268_1504955413.png","image_5":"http:\/\/photos-b.ak.fbcdn.net\/photos-ak-snc7\/v85005\/78\/344521295633922\/app_104_344521295633922_1943760717.png","image_3":"http:\/\/photos-c.ak.fbcdn.net\/photos-ak-snc7\/v85005\/14\/298987460188718\/app_104_298987460188718_170436975.png","image_2":"http:\/\/photos-g.ak.fbcdn.net\/photos-ak-snc7\/v85006\/196\/287530028007964\/app_104_287530028007964_853932327.png","image_1":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yY\/r\/2LiCtrj0cdC.png"},"urlDescription":" Facebook is a social utility that connects people with friends and others who work, study and live around them. People use Facebook to keep up with friends, upload an unlimited number of photos, post links and videos, and learn more about the people they meet."} </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload