How to read unicode character in Json string

scraping
json

#1

In a web scraping project, I used json.net activity to deserialise a scraped json string into a jObject. Some variables in the json string are korean characters which encoded as something like “\ub9c8\ud2f8\ub2e4”. Any idea to decode back to unicode characters? Thanks a lot :slight_smile:


#2

I just googled, can you try below functions.Hope it helps.

unescape(JSON.parse(’“http\u00253A\u00252F\u00252Fexample.com”’));

Or

var string = “http\u00253A\u00252F\u00252Fexample.com”;
decodeURIComponent(JSON.parse(’"’ + string.replace(/"/g, ‘\"’) + ‘"’));