.serializeArray() as JSON Map

.serializeArray() as JSON Map

Hello again!

Well, I propose this:
Currently, if you use .serializeArray() will get anything as:
[{name: "test", value: "test"}, {name: "test2", value: "test2"}]

But if you need pass this as POST in AJAX (that need a MAP object), you need converts:
{test: "test", test2: "test2"}

I propose .serializeArray(asMap = true) to generate this.

Bye.