Sample code for 30+ languages & platforms
Classic ASP

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat Classic ASP Downloads

Classic ASP
<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("{&quot;xyz&quot;: &quot;abc&quot;}")

success = sb.EntityDecode()

' This is a test comment;
Response.Write "<pre>" & Server.HTMLEncode( sb.GetAsString()) & "</pre>"

' Output is:

' {"xyz": "abc"}

%>
</body>
</html>