SyntaxError: Unexpected token c in JSON at position 1 when you POST JSON data with curl
When trying to use curl to POST data to your api and getting an error?
The error:
SyntaxError: Unexpected token c in JSON at position 1
Answer
You need to wrap your json block in quotes
curl -X POST -H "Content-Type: application/json" -d '{"content":"a"}' your_url_here