Sample code for 30+ languages & platforms
Perl

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat Perl Downloads

Perl
use strict;
use warnings;
use Chilkat2;

my $sb = Chilkat2::StringBuilder->new;

my $success = $sb->Append('{"xyz": "abc"}');

$sb->EntityDecode();

# This is a test comment;
print $sb->GetAsString(), "\n";

# Output is:

# {"xyz": "abc"}