If the object is json, you can call JSON.stringify(thingThatIsJson) , which will return a string. .toString() does not work on json.
This message is for those of you who are dealing with something like req.body that will work in console.log() , which is quite confusing, since it cannot behave differently from String (for example, when you trying to add it to another String).
source share