jquery - Post the Content of the data variable to valid JSON format -


i trying send json data server (https://exampleurl.com/example?data=) setting content of data variable valid json following properties name , email , urls.

you cannot send json data in url. need pass json data in request body.

if using jquery, use following code:

$.post( "test.php", { name: "john", time: "2pm" } ); 

Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -