Scene: adding a PUT route with a
bodyParser.json() as middleware.
- Creates request in Postman as application/json
GetSyntaxError: Unexpected token "\n
Uncertain, tries a few other things (removing middleware, using
- Those being unsuccessul, decides to validate request body
Error:Strings should be wrapped in double quotes.[Code 17, Structure 2]
- PUT route now works!
TIL: json expects
" and not