java - How to parse this queryString which is a resultant of JSON response -
i have parsed json response , got string below :
string querystring = "aqb=1&v1=somev1data&v25=somev25data&url=http://www.someurl.com/configure/getvalues/request1=req1passed&data2=somedatapassed&ce=utf-8&arb=1";
when split above querystring output should :
aqb=1 v1=somev1data v25=somev25data url=http://www.someurl.com/configure/getvalues/request1=req1passed&data2=somedatapassed ce=utf-8 arb=1
note :
querystring changes , url parameters changes. aqb,v1.....v30,p1....p30,ce,pre,pe,url,arb predefined variable names.
it not possible unless url parameter url-encoded, "&" characters escaped in order not interpreted field separators.
the string should encoded this:
string querystring = "aqb=1&v1=somev1data&v25=somev25data&url=http%3a%2f%2fwww.someurl.com%2fconfigure%2fgetvalues%2frequest1%3dreq1passed%26data2%3dsomedatapassed&ce=utf-8&arb=1";
as formatted in question, string cannot parsed successively.
Comments
Post a Comment