Sample code for 30+ languages & platforms
Unicode C++

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat Unicode C++ Downloads

Unicode C++
#include <CkStringBuilderW.h>

void ChilkatSample(void)
    {
    bool success = false;

    CkStringBuilderW sb;

    success = sb.Append(L"{&quot;xyz&quot;: &quot;abc&quot;}");

    sb.EntityDecode();

    // This is a test comment;
    wprintf(L"%s\n",sb.getAsString());

    // Output is:

    // {"xyz": "abc"}
    }