asp如何解析json的数据
json格式的数据如下:
Plain Text code? [{"id":"1","name":"aa"},{"id":"2","name":"bb"}]
想要通过asp提取里面的name
<%@Language="VBScript" %> <% Option Explicit %> <script language="JavaScript" runat="server" src='json2.js'></script> <% Dim iTmp Dim myJSON Dim objJSON myJSON = "[{""id"":""1"",""name"":""aa""},{""id"":""2"",""name"":""bb""}]"Set objJSON = JSON.parse(myJSON) for each iTmp in objJSON Response.Write iTmp.name Next%>