• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Decode JSON from IIS web method

szlamany

Lurker
Mar 11, 2014
3
0
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?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones