ASP制作生成Json文件的源代码
asp输出json对象的方法及实例正确的方法:拼凑字符串的方法,如果嫌麻烦可以去下载个Json.asp 数组拼凑,或许看起来更直观
<%@Language="VBScript" CodePage="65001"%>
<%
response.ContentType = "application/json"
str="{""errcode"":0,""message"":""ok""}"
response.write str
response.end
%>
response.ContentType = "application/json"
而好多人却是这样写的:
response.ContentType = "text/json" '输出的只是字符串