I need to add a URL, usually in the format http: \ someebsite.com \ somepage.asp. When I create a string with the above URL and add it to the json JSON object
using
json.put("url",urlstring);
it adds an extra "\" and when I check the output as http:\\\\somewebsite.com\\somepage.asp
When I specify the URL as http://somewebsite.com/somepage.asp the json output is http:\/\/somewebsite.com\/somepage.asp
Can you help me get the url as is, please?
thanks
source share