Sample code for 30+ languages & platforms
C++

Decode HTML Entity Encoded JSON

See more JSON Examples

Decodes an HTML entity encoded string to JSON.

Chilkat C++ Downloads

C++
#include <CkStringBuilder.h>

void ChilkatSample(void)
    {
    bool success = false;

    CkStringBuilder sb;

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

    sb.EntityDecode();

    // This is a test comment;
    std::cout << sb.getAsString() << "\r\n";

    // Output is:

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