Getting Error While Testing PushNotification

When i try to test the Push Notification as per the ionic doc.

curl -k MyPrivateKEy: -H “Content-Type: application/json” -H “X-Ionic-Application-Id: MyAppID” https://push.ionic.io/api/v1/push -d ‘{“tokens”:[“MyDeviceToken”],“notification”:{“alert”:“I come from planet Ion.”}}’

After run the above code in command prompt i get error message as

Error: invalid json
   at parse (/app/node_modules/body-parser/lib/types/json.js:79:15)
   at /app/node_modules/body-parser/lib/read.js:102:18
   at done (/app/node_modules/body-parser/node_modules/raw-body/index.js:250:14)
   at IncomingMessage.onEnd (/app/node_modules/body-parser/node_modules/raw-body/index.js:296:7)
   at IncomingMessage.g (events.js:199:16)
   at IncomingMessage.emit (events.js:104:17)
   at _stream_readable.js:908:16
   at process._tickCallback (node.js:355:11)

Please help me to fix this issue. :frowning:

Why are you running this in node. This is supposed to be in front end not your backend.