Hi,

just wanted to let you know that the latest version of cJSONParser (v1.18) supports strings with unicode tokens such as this:


Code:
// Include latest eriksven.com libraries
Use cHashTable.pkg
Use cRegex.pkg
Use cJSONDictionary.pkg // version 1.12 or later
Use cJSONParser.pkg // version 1.18 or later

Procedure TestUnicodeTokenParsing
    String sJson sParsedValue
    Handle hParser hDictionary
    
    // Json string to be parsed. \u00A9 represents the copyright (©) symbol
    Move '{ "text" : "Some text containing unicode tokens like this \u00A9" }' to sJson
    
    // Create required instances
    Get Create U_cJSONParser to hParser
    Get Create U_cJSONDictionary to hDictionary
    
    // Parse the json string
    Send Parse of hParser sJson hDictionary
    Send Destroy of hParser
    
    // Get the value of the "text" property
    Get Value of hDictionary "text" to sParsedValue
    
    // Display parsed value
    Showln sParsedValue // --> "Some text containing unicode tokens like this ©"
    
    // Clean up
    Send Destroy of hDictionary
End_Procedure
Send TestUnicodeTokenParsing
It's included in VdfWebTools that can be downloaded from here: http://eriksven.com/downloads/