var request = require('request');
request.post(
'http://www.yoursite.com/formpage',
{ json: { key: 'value' } },
function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body)
}
}
);
But the issue I have is not knowing how to parse and adjust the code.
"entities": [
{
"entity": "today",
"type": "builtin.datetimeV2.date",
"startIndex": 0,
"endIndex": 4,
"resolution": {
"values": [
{
"timex": "2017-12-13",
"type": "date",
"value": "2017-12-13"
}
]
}
}
]
}
The value I want from this JSON is today in entity.
How can I adjust the code to give me that exact entity I want ?