I have a Nodejs lambda function that needs to parse JSON sent to it from an external application. The JSON appears to be malformed and comes in as an object key like so:
console.log(req.body)
results in:
{ '{"id":"258830096441","time":10}': '' }
What I need is the id and id number, but I am stumped as to how I could parse this.