php - express parsing all request to json
one text
Solution:
JSON.stringify(req)
is not the equivalent to file_get_contents('php://input')
. req
is a complex object that cannnot be represented as json. That is why you are getting the error Converting circular structure to JSON
.
You need to find the equivalent to file_get_contents('php://input')
in node.js. This should be the full request-body.