I need to serialize all inputs from a form into a JSON string. With the help of this post, I can successfully create a valid string as below:
{\"input01\
Be sure that you
echo $_GET['varwithurl']
not
echo json_encode($_GET['varwithurl'])
as many php web examples do.
I send data with url with $.ajax() and don't see unwanted backslashes in php script.
$.ajax()