I think the error is thrown on the input parameter of JSON.parse
. Try to first call toString
on it then pass to the function.
let communicationInformation = JSON.parse(newCommunication.content.toString());
I think the error is thrown on the input parameter of JSON.parse
. Try to first call toString
on it then pass to the function.
let communicationInformation = JSON.parse(newCommunication.content.toString());