If I
You could use this:
JSON.stringify($(form).serializeArray().reduce((acc, f) => { acc[f.name] = f.value return acc }, {})