語法:[JSON].toString()
返回:[String]
說明:獲取[JSON]實例的字符串結果
示例:
<%
jsonString = "{div: 'hello word!'}" Set jsonObj1 = toJson( jsonString ) Response.Write jsonObj1.toString() ' 輸出結果:{"div" : "hello word!"} %>
注意:結果會把鍵名、鍵值統一用雙引號包括,比如上例中結果 div 轉換成 "div"。