JSON unicode response

Hi, guys.

Now I do integration with delivery service through JSON api.
and I have display problems with the Cyrillic alphabet.
my script (conclusion offices list in a particular city):

function nptest()
{
var url = ‘http://api.novaposhta.ua/v2.0/json/’;
var content = ‘{“modelName”: “Address”,“calledMethod”: “getWarehouses”,“methodProperties”:{“CityRef”:“db5c8953-391c-11dd-90d9-001a92567626”},“apiKey”: “ef3ca061bf6a1ff0b1a0122b1bb6289b”}’;
var respronse = web.PostJson(url,content)
return respronse
}

gives the message where Cyrillic is not decoded

Here I found something related for you.

http://stackoverflow.com/questions/7885096/how-do-i-decode-a-string-with-escaped-unicode

2 Likes