Below snippet show how to convert form data to json in easy way using FormData (form in my real case have not 2 but about 40 fields)
FormData