I am trying to take a request using postmon in for a json string to apply json patch. The issue is I am unable to convert the string to json one the data is posted via variable. Every time I do
JSON.parse(document);
I am getting the following error:
SyntaxError: Unexpected token ' in JSON at position 1
The Data which I am sending is the following
{"document":"{'baz': 'qux', 'foo': 'bar'}"}
via postman using a post method.
I am using req.body to get hand on post data
