How to Convert HTML Form Field Values to a JSON Object
This might help you: https://www.learnwithjason.dev/blog/get-form-values-as-json