I have an instance of a Class named P
const stringifyObject = require('stringify-object');
JSON.parse(stringifyObject(P));
Which returns the following error:
_readableState: {
^
SyntaxError: Unexpected token _ in JSON at position 3
at JSON.parse (<anonymous>)
JSON.parse. It will throw an exception if you pass an invalid JSON string into it.