regex = CreateObject("roRegex", "\\u", "")
year = regex.Replace(year, "-")
You could, before parsing, do a string replace on the data, and send the result to the JSON parser.
I'm parsing a JSON response and am finding that some year strings are returned with the following format in JSON:
When I set year = Content.Year I'd like to replace the \u with a dash (ex. 2009-2013), but its showing up as "2009-" currently and I'm not able to even see the second year. I see that \u appears to be an escape character. Any idea how I can get this date range formatted correctly?
"kyleabaker" wrote:Yes, it is not replacing anything, because there is no r"\u" in the string. The display of EN DASH as tabs+Ç is some idiosyncrasy of the console, which i rather not dig into (could be the telnet protocol, terminal emulator etc).
Doesn't seem to be replacing anything and you can see the Ç char is printed for some reason.