Problem with jQuery AJAX

Problem with jQuery AJAX

Seems simple enough to set up an AJAX call through jQuery. I have my call set up this way:

===[begin jQuery code]===
var ajaxOptions = {
    url: '/ajax.php',
    type: 'post',
    data: {act: 'fetch', uid: 1},
    dataType: 'json',
    success: dispUser
};

$.ajax(ajaxOptions);
===[end jQuery code]===

Works fine; the data gets to the ajax.php, the php script fetches the data and then encodes it as JSON for return:

===[begin PHP code]===
    header('Content-Type: application/json');
    $t2 = json_encode($retval);
    echo $t2;
===[end PHP code]===

The content being returned (according to firebug) is this:

[{"0":"1","uid":"1","1":"Allen","first_name":"Allen","2":"Wyatt","last_name":"Wyatt","3":"allen@sharonparq

.com","email":"allen@sharonparq.com","4":"8013692885","phone_home":"8013692885","5":"8016072035","phone_work":"8016072035","6":"8013692885","phone_mobile":"8013692885","7":"238 E. 550 N.","street1":"238 E. 550 N.","8":"","street2":"","9":"Orem","city":"Orem","10":"UT","state":"UT","11":"84057","zip_code":"84057","12":"about","bio":"about","13":"","picture_file":"","14":"Awyatt","username":"Awyatt","15":"AweEMLr53r\/Ds","pword":"AweEMLr53r\/Ds","16":"1","super":"1"}]
However, firebug is also reporting an error, presumably within the JSON decoding that is inherent in doing a JSON AJAX call:


InvalidCharacterError: String contains an invalid character

Any suggestions on what the problem is and how it can be fixed?

-Allen