I have problem formatting my JSON data after referring to some samples for reference and I have syntax errors in my codes and I could not resolve the syntax errors. The syntax errors are pointing to my newdata.
Please see my codes below and advise how I should change my codes.
Sorry, I am having issues posting the codes here as I got error prompting that I have links in my posting but I have removed them but it is still not allowed.
I have to screenshot the error message from my Wix editor for the newdata and body variable.
Please take a look and advise what could have gone wrong.
I have managed to move the calling of the fetch API to backend code and the “content-type” in the header was successfully changed to “application/json” and the call was successful with the response that I was expecting.
Thanks so much for the guidance especially from J.D.