DUELapijlib › serialize

From Botdom Documentation

< DUEL | api | jlib
Jump to: navigation, search

This function takes and Array or Object and makes it into an encoded string for a http url.

Options

The serialize function takes one argument, that is the input Array.

Example

This:

var array = {"name": "john", dob: "16/11/1982"};
jLib.serialize(array);

Would return the string:

name=john&dob=16%2F11%2F1982
Personal tools