• 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
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?
 
Back
Top Bottom