View Full Version : How to turn params into JSON format

17 Jun 2010, 6:34 PM
Hi all

How do I turn this into JSON format so my web service could consume it?

autoLoad: { params: { start: 0, limit: 4} },

Now it sent this back to my server : start=0&limit=4


17 Jun 2010, 10:03 PM
they are sending by GET request. you could just dig into your web service's documentation to find how to read those params.

in php you can read params from $_GET superarray. ie $_GET[ 'start' ]
in asp you can use Request.QueryString method. ie Request.QueryString( "start" )
in asp.net and c# use Request.QueryString superarray. Request.QueryString[ "start" ]