weixin_33739646 2014-12-26 21:05 采纳率: 0%
浏览 48

Json-参数异常错误

I want to add to the database with json data. Where there is error help me please.

$.ajax
            ({
                type: "POST",
                url: "bultenOku.aspx/bultenKayit",
                data: "{macBahsi:'" + macBahsi + "',ilkYariBahsi:'" + ilkYariBahsi + "',ikinciYariBahsi:'" + ikinciYariBahsi + "',handikapBahsi:'" + handikapBahsi + "',cifteSans:'" + cifteSans + "',ilkYariCifteSans:'" + ilkYariCifteSans + "',paraIade:'" + paraIade + "',_05TG_AU:'" + _05TG_AU + "',_15TG_AU:'" + _15TG_AU + "',_25TG_AU:'" + _25TG_AU + "',_35TG_AU:'" + _35TG_AU + "',_05IY_AU:'" + _05IY_AU + "',_15IY_AU:'" + _15IY_AU + "',_25IY_AU:'" + _25IY_AU + "',hangiYariDahaCokGolOlur:'" + hangiYariDahaCokGolOlur + "',_05_2YAU:'" + _05_2YAU + "',_15_2YAU:'" + _15_2YAU + "',_25_2YAU:'" + _25_2YAU + "',ikiTakimdaGolAtarmi:'" + ikiTakimdaGolAtarmi + "',toplamGolTekCift:'" + toplamGolTekCift + "',ilkYariIkiTakimdaGolAtarmi:'" + ilkYariIkiTakimdaGolAtarmi + "',ilkYariTgTekCift:'" + ilkYariTgTekCift + "',ikinciYariTgTekCift:'" + ikinciYariTgTekCift + "',evSahibiHerIkiYariGolAtarmi:'" + evSahibiHerIkiYariGolAtarmi + ",deplasmanHerIkiYariGolAtarmi:'" + deplasmanHerIkiYariGolAtarmi + "'',herIkiDevre15AltOlur:'" + herIkiDevre15AltOlur + "',herIkiDevre15UstOlur:'" + herIkiDevre15UstOlur + "',ilkYariParaIade:'" + ilkYariParaIade + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    alert(data.d);
                },
                error: function (xhr, status, error)
                {
                    errorHandling(xhr, status, error);
                }
            })

Error message : {"Message":"Geçersiz nesne geçirildi, \u0027:\u0027 veya \u0027}\u0027 bekleniyor. (709): {macBahsi:\u00271.60~3.90~6.00~\u0027,ilkYariBahsi:\u00272.05~2.25~5.50~\u0027,ikinciYariBahsi:\u00271.90~2.60~5.25~\u0027,handikapBahsi:\u00272.45~3.60~2.25~\u0027,cifteSans:\u00271.12~1.20~2.00~\u0027,ilkYariCifteSans:\u00271.12~1.45~1.55~\u0027,paraIade:\u00271.18~3.80~\u0027,_05TG_AU:\u00277.25~1.04~\u0027,_15TG_AU:\u00273.45~1.22~\u0027,_25TG_AU:\u00271.90~1.75~\u0027,_35TG_AU:\u00271.35~2.85~\u0027,_05IY_AU:\u00272.95~1.35~\u0027,_15IY_AU:\u00271.45~2.55~\u0027,_25IY_AU:\u00271.10~5.75~\u0027,hangiYariDahaCokGolOlur:\u00273.00~3.40~2.05~\u0027,_05_2YAU:\u00273.85~1.22~\u0027,_15_2YAU:\u00271.70~2.05~\u0027,_25_2YAU:\u00271.20~4.20~\u0027,ikiTakimdaGolAtarmi:\u00271.85~1.85~\u0027,toplamGolTekCift:\u00271.90~1.80~\u0027,ilkYariIkiTakimdaGolAtarmi:\u00274.35~1.16~\u0027,ilkYariTgTekCift:\u00272.05~1.70~\u0027,ikinciYariTgTekCift:\u00271.90~1.75~\u0027,evSahibiHerIkiYariGolAtarmi:\u00272.35~1.50~,deplasmanHerIkiYariGolAtarmi:\u00275.75~1.08~\u0027\u0027,herIkiDevre15AltOlur:\u00272.50~1.45~\u0027,herIkiDevre15UstOlur:\u00274.90~1.14~\u0027,ilkYariParaIade:\u00271.30~3.35~\u0027}","StackTrace":" konum: System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) konum: System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) konum: System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) konum: System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) konum: System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input) konum: System.Web.Script.Services.RestHandler.GetRawParamsFromPostRequest(HttpContext context, JavaScriptSerializer serializer) konum: System.Web.Script.Services.RestHandler.GetRawParams(WebServiceMethodData methodData, HttpContext context) konum: System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)","ExceptionType":"System.ArgumentException"}

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 有偿寻云闪付SDK转URL技术
    • ¥30 基于信创PC发布的QT应用如何跨用户启动后输入中文
    • ¥20 非root手机,如何精准控制手机流量消耗的大小,如20M
    • ¥15 远程安装一下vasp
    • ¥15 自己做的代码上传图片时,报错
    • ¥15 Lingo线性规划模型怎么搭建
    • ¥15 关于#python#的问题,请各位专家解答!区间型正向化
    • ¥15 unity从3D升级到urp管线,打包ab包后,材质全部变紫色
    • ¥50 comsol温度场仿真无法模拟微米级激光光斑
    • ¥15 上传图片时提交的存储类型