android - key="value"&key="value" String parsing in Java -
this question has answer here:
- parsing query strings on android 23 answers
- query string manipulation in java 4 answers
how can parse string success="true"&sign_type="rsa"&sign="xxx"
("" included in original string) map or javabean?
map<string, string> map = new hashmap<string, string>(); string[] arr = str.split("&"); for(string s : arr){ strng[] = s.split("="); map.put(a[0],a[1]); }
Comments
Post a Comment