Pessoal, estou tendo o seguinte erro ao inserir o comando no prompt:
curl http://localhost:3000/pagamentos/pagamento -X POST -v -H "Content-type:application/json" -d '{"forma_de_pagamento":"payfast","valor":10.98,"moeda":"BRL","descricao":"criando um pagamento"}'
Erro:
SyntaxError: Unexpected token '<br> at parse (C:\Workspace novo
\Javascript\NodeJs\payfast\node_modules\body-parser\lib\types\json.js:83:15)<br>
at C:\Workspace novo\Javascript\NodeJs\payfast\node_modules\body-p
arser\lib\read.js:116:18<br> at invokeCallback (C:\Workspace novo\J
avascript\NodeJs\payfast\node_modules\raw-body\index.js:262:16)<br>  
;at done (C:\Workspace novo\Javascript\NodeJs\payfast\node_modules\raw-body\inde
x.js:251:7)<br> at IncomingMessage.onEnd (C:\Workspace novo\Javascr
ipt\NodeJs\payfast\node_modules\raw-body\index.js:307:7)<br> at emi
tNone (events.js:80:13)<br> at IncomingMessage.emit (events.js:179:
7)<br> at endReadableNT (_stream_readable.js:906:12)<br> &nb
sp;at nextTickCallbackWith2Args (node.js:475:9)<br> at process._tic
kCallback (node.js:389:17)
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact
Por favor, alguém saberia como resolver este problema?