问题描述
我使用来连接一个ASP之间code /德code JSON .NET RESTful服务。
I am using JSONKit to encode/decode JSON between an ASP.NET RESTful service.
由服务使用的日期格式谈到的,看起来像:
The date format used by the service is talked about here and looks like:
"\/Date(1198908717056)\/"
问题是,当JSONKit处理一个字符串,它看起来像这样最终的结果看起来是这样上面,它避开反斜杠:
The problem is that when JSONKit processes a string that looks like above it escapes the backslash so the end result looks like this:
"\\/Date(1198908717056)\\/"
该JSON规范说,你可以选择逃避正斜杠(/),所以应该JSONKit间preT在
That said, I recommend you file a bug report with JSONKit. John is certainly the best person to fix this and JSONKit is far too optimised for me to have confidence in this patch; I’m not familiar with JSONKit at all. Feel free to refer him to this post.
这篇关于如何从ASP.NET JSON日期格式转义反斜线prevent JSONKit?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!