【发布时间】:2012-05-25 14:58:32
【问题描述】:
您好,我想构建一个如下所示的简单 json:{"Count" : "55", "total" : "125,55"}
在我的 vb 方法中,我这样做是为了对其进行编码:
Dim json As String = "{""Count"" : "" " & intCount & " "", ""total"" : "" " & intTotal & " "" }"
但我认为我错过了一些东西来逃避引号,当我的浏览器收到它时,它看起来像这样:{"d":"{\"Count\" : \" 5 \", \"total\" : \" 55 \" }"}
让 jQuery 无法阅读...
知道如何以简单的方式编码这个 json 吗?
【问题讨论】:
-
你是怎么把这个输出到页面上的?
-
webMethod 公共共享函数然后返回
标签: jquery asp.net vb.net json