I am trying to get the Json type data put during node+express from req.body and output the log.
JSON.stringify (req.body)
So how do we stop __prot__ from being deleted or included in the data?
javascript node.js
JSON.stringify()
How about using the second argument of the function?
JSON.stringify(req.body,(key,value)=>key==="__prot__"?undefined:value)
Note: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
617 Uncaught (inpromise) Error on Electron: An object could not be cloned
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
911 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.