-
Notifications
You must be signed in to change notification settings - Fork 266
Description
Trying to use this with CircleCI scripts and the JSON file parses and blows up with this error
SyntaxError: Unexpected token \ in JSON at position 35<br> at JSON.parse (<anonymous>)<br> at parse (/home/node/data/node_modules/body-parser/lib/types/json.js:89:19)<br> at /home/node/data/node_modules/body-parser/lib/read.js:121:18<br> at invokeCallback (/home/node/data/node_modules/raw-body/index.js:224:16)<br> at done (/home/node/data/node_modules/raw-body/index.js:213:7)<br> at IncomingMessage.onEnd (/home/node/data/node_modules/raw-body/index.js:273:7)<br> at IncomingMessage.emit (events.js:203:15)<br> at IncomingMessage.EventEmitter.emit (domain.js:466:23)<br> at endReadableNT (_stream_readable.js:1145:12)<br> at process._tickCallback (internal/process/next_tick.js:63:19)</pre>
Also it does not work in windows shell same script different error at the call to the JSON parser
DATA=$URL| ./scripts/JSON.sh | egrep '\["upload_url","[^"]*"\]'
get this error
EXPECTED value GOT EOF