Rust
Rust
Decode HTML Entity Encoded JSON
See more JSON Examples
Decodes an HTML entity encoded string to JSON.Chilkat Rust Downloads
let sb = chilkat::StringBuilder::new();
let _ = sb.append("{"xyz": "abc"}").is_ok();
let _ = sb.entity_decode();
// This is a test comment;
println!("{}", sb.get_as_string().unwrap_or_default());
// Output is:
// {"xyz": "abc"}