I have a jQuery code
$.getJSON(
"http://my.website.com/cors",
{
url: "https://www.someREST.com:8888/rest/v1",
last: self.last(),
first: self.first(),
address: self.address()
},
function (data) {
console.log(JSON.stringify(data.entry));
});
but when I call that getJSON
an URL parameter has added backslashes to each slash and encodeURIComponent()
it makes even worse.
Any tips on that?