Sample code for 30+ languages & platforms
PHP ActiveX

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat PHP ActiveX Downloads

PHP ActiveX
<?php

$success = 0;

$sb = new COM("Chilkat.StringBuilder");

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

$sb->EntityDecode();

// This is a test comment;
print $sb->getAsString() . "\n";

// Output is:

// {"xyz": "abc"}

?>