Classic ASP
Classic ASP
Decode HTML Entity Encoded JSON
See more JSON Examples
Decodes an HTML entity encoded string to JSON.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set sb = Server.CreateObject("Chilkat.StringBuilder")
success = sb.Append("{"xyz": "abc"}")
success = sb.EntityDecode()
' This is a test comment;
Response.Write "<pre>" & Server.HTMLEncode( sb.GetAsString()) & "</pre>"
' Output is:
' {"xyz": "abc"}
%>
</body>
</html>