- json_decode: documentation ( source)
- urldecode: documentation ( source)
- http_build_query: documentation ( source)
<?php
$res= json_decode('{
"sorters": [
{
"name": "id",
"type": "ASC"
}
],
"fields": [
"id"
]
}');
$url = urldecode(http_build_query($res));
print ($url);