私は小さな問題に出くわしました。67615 エントリのバイト配列を含む JSON 応答が返されます。さて、それは追加します
`[....,154,156,);jQuery1910039778258679286416_1363006432850(181,104,...]
~7300文字ごと
ajaxメソッドを使用して解析すると、通常の動作方法でエラーが発生します。これは、コールバックが応答を無効にするため、エラーが発生します
...,184,1,26,65,140,86,211,16,194,210,174,1);jQuery17203250109862964784_13639643449...
そのため、もう有効ではありません
これを使用して解析します
$.ajax({
url : url,
cache : false,
dataType : "jsonp",
crossDomain : true,
success : function(root) {
console.log(root)
}
})
これは、オブジェクトを提供する asp サーバーに問題がある可能性がありますか、それとも解析に問題がありますか?
前もって感謝します
EDIT1:
[WebMethod(Description = " ", EnableSession = true)]
[ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
public Borrower getSessionedBorrowerHeader(ref sysmessage aMessage)
{
if (!(userValidated(ref aMessage)))
return null;
BorrowerControl borrowerControl = new BorrowerControl(LOCALconnectionStringDb,
WEBconnectionStringDb,
STATSconnectionStringDb,
LIBconnectionStringDb,
CATconnectionStringDb,
LIBconnectionStringDb,
Session);
Borrower returnObj = borrowerControl.getSessionedBorrowerHeader(ref aMessage);
borrowerControl.Dispose();
return returnObj;
}
さらにコードが必要な場合は、ASPに興味がないことを教えてください:(
EDIT2:
何をすべきか:( これがJSON回答です