Closed ninjasun closed 4 years ago
You don’t need JSON.parse(req.body)
because it will handle by body parser.
What @ikhsanalatsary said is correct (thanks!). You shouldn't have to do JSON.parse
.
I will close this issue for housekeeping purposes, but @ninjasun let me know if you have any further issues. Thanks!
Hi all, I'm struggling around that thing. Basically, in my sql table, I have FLOAT and other types and in my
req.body
all the value are string (even 'null') as they should be. Can't figure out a way to convert them before callmodel.update
.JSON.parse(req.body)
breaks everything.My request configuration comes from:
Thanks for any suggestion.