DataFlex
DataFlex
Decode HTML Entity Encoded JSON
See more JSON Examples
Decodes an HTML entity encoded string to JSON.Chilkat DataFlex Downloads
Use ChilkatAx-win32.pkg
Procedure Test
Boolean iSuccess
Handle hoSb
String sTemp1
Move False To iSuccess
Get Create (RefClass(cComChilkatStringBuilder)) To hoSb
If (Not(IsComObjectCreated(hoSb))) Begin
Send CreateComObject of hoSb
End
Get ComAppend Of hoSb "{"xyz": "abc"}" To iSuccess
Get ComEntityDecode Of hoSb To iSuccess
// This is a test comment;
Get ComGetAsString Of hoSb To sTemp1
Showln sTemp1
// Output is:
// {"xyz": "abc"}
End_Procedure