If I've for example an object like:
{start: 1, end: 2, someString="someStringValue"}
Is there any simple way to serialize it into a string of data? Example:
start=1&end=2&someString=someStringValue
Thanks.
asked Oct 28, 2009 at 19:48
Alon Gubkin
57.2k58 gold badges200 silver badges292 bronze badges
1 Answer 1
You can use the param() function:
var str = jQuery.param({start: 1, end: 2, someString: "someStringValue"});
answered Oct 28, 2009 at 19:51
Greg
323k55 gold badges378 silver badges338 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-js