I'm trying to get the username from a JSON property I get returned from Sharepoint's restful API.
The property/string I receive: "i:0#.w|xyz\tzzjjaa"
What I want: "xyz\tzzjjaa"
I tried: "i:0#.w|xyz\tzzjjaa".replace("\\","\\\\")
, which returns:
"i:0#.w|corproot tzzjjaa"
Why is this the case? (is the backslash kind of escaping the "t" in the string?)
How can I fix it to just get "xyz\tzzjjaa"
?
Thanks alot. :)