What is the use of serialize() method in JQuery?

What is the use of serialize() method in JQuery?

This serialize() method used to create a URL encoded text string by serializing different form values. The syntax of it - $(selector).serialize()