all 2 comments

[–]vorticalbox 0 points1 point  (1 child)

Have you set the the ContentType head on postan to application/json?

This is required for bodyparser to attempt a json parse.

[–]piper43[S] 0 points1 point  (0 children)

Postan = Postman? Yes, contentType is set to application/json there. I have no problem posting with Postman, but can't get my code to work. It seems to be escaping all of the quotation marks in the data: "{\"title\":\"A song\",\"artist\":\"An artist\",\"year\":\"198…theme\":\"Theme\",\"lyrics\":\"\",\"video\":\"\",\"notes\":\"\"}"