I'm doing a POST to an IIS web method that returns JSON strings
They look like this:
{"d":"{\"login\":true,\"success\":\"\",\"message\":\"\u003cbr /\u003eLog in failure!\"}"}
I need to get rid of the \'s in front of the double quotes and turn the \u003c and \u003e back into < and > characters.
I tried this:
json2 = URLDecoder.decode(result, "UTF-8");
This did nothing to the string - I'm guessing it's not URLEncoded.
Any way to decode this without doing my own .Replace() statements?
They look like this:
{"d":"{\"login\":true,\"success\":\"\",\"message\":\"\u003cbr /\u003eLog in failure!\"}"}
I need to get rid of the \'s in front of the double quotes and turn the \u003c and \u003e back into < and > characters.
I tried this:
json2 = URLDecoder.decode(result, "UTF-8");
This did nothing to the string - I'm guessing it's not URLEncoded.
Any way to decode this without doing my own .Replace() statements?