Quantcast
Channel: VBForums - Java
Viewing all articles
Browse latest Browse all 54

Java on Android Decoding a string

$
0
0
I'm calling IIS web methods from a java app on an Android device.

The IIS web method returns a JSON string that looks like this:

Code:

{"d":"{\"login\":true,\"success\":\"\",\"message\":\"\u003cbr /\u003eLog in failure!\"}"}
I'm trying to decode it - get rid of the \'s in front on the double-quotes - and turn those \u003c and e's into <> brackets.

I am using this code

Code:

json2 = URLDecoder.decode(result, "UTF-8");
and it's doing nothing to the string.

So I'm guessing this is NOT URL encoded - it's some other kind of encoding.

Any help greatly appreciated - thanks!

Viewing all articles
Browse latest Browse all 54

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>