I am facing an issue with saving my model to the server and returning the ID along with other attributes. It appears that the response is being accepted as a string instead of a JSON object, leading to the entire string being added. I am using the express framework on the server side and the express-json module to serve the JSON response, which I have used successfully in the past by calling the res.json(dataObject)
function. Can anyone help me figure out what might be going wrong? Feel free to take a look at the images provided or ask for more details.
https://i.sstatic.net/zut4P.png