My shared web hosting adds \ to JSON. I use ExtJS and it normally sends this data
[{"property":"id","direction":"ASC"}]
Howere PHP receives or chages it as [{\"property\":\"id\",\"direction\":\"ASC\"}]
Thus I cannot use json_decode($_REQUEST['sort'])
I think this is because they wanted to prevent SQL injection but now they break my application. What I have to do?
Edit:
$sort = json_decode($_GET['sort']);
print_r($_GET); // [sort] => [{\"property\":\"id\",\"direction\":\"ASC\"}]
print_r($sort); //