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 <C_CkStringBuilderW.h>

void ChilkatSample(void)
    {
    BOOL success;
    HCkStringBuilderW sb;

    success = FALSE;

    sb = CkStringBuilderW_Create();

    success = CkStringBuilderW_Append(sb,L"{&quot;xyz&quot;: &quot;abc&quot;}");

    CkStringBuilderW_EntityDecode(sb);

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

    // Output is:

    // {"xyz": "abc"}


    CkStringBuilderW_Dispose(sb);

    }