modify form serializeArray to serializeJSON