asp.net mvc - MVC JSON method returning invalid JSON to JQuery? -
i having problems jquery parsing json sending back... however, odd because using mvc's json method. here's setup. have simple function: $.ajax({ url: urld, datatype: 'json', data: { year: $('#vehicleyear').val(), value: request.term }, success: function (data, textstatus, jqxhr) { alert("success!"); }, error: function(xmlhttprequest, textstatus) { alert(textstatus + ": " + xmlhttprequest.responsetext); } }); it runs error function shows: parsererror: [{"value":"toyota","id":160}] i cannot figure out why in world doing this... it working older version of jquery - , read jquery json parser quite bit more strict now- can't figure out what's wrong json. even if wrong, that's frustrating because i'm using mvc's json function generate this: public actionresult getvehiclemodels(int year, int makeid, string value = null) { var modlmatchs =...