Tcl
Tcl
Decode HTML Entity Encoded JSON
See more JSON Examples
Decodes an HTML entity encoded string to JSON.Chilkat Tcl Downloads
load ./chilkat.dll
set success 0
set sb [new_CkStringBuilder]
set success [CkStringBuilder_Append $sb "{"xyz": "abc"}"]
CkStringBuilder_EntityDecode $sb
# This is a test comment;
puts [CkStringBuilder_getAsString $sb]
# Output is:
# {"xyz": "abc"}
delete_CkStringBuilder $sb