I attempted to convert a string into a JavaScript object using JSON.parse
, however, it seems to be unsuccessful.
After trying various methods, I did not receive any output in the console.log
and no error messages were displayed.
JSON.parse(`{'exp': '1', 'input': '1d6404f66ed3d72e', 'iterate': 'no'}`);
Update
In my actual code, I am passing the value from an object.
console.log(JSON.parse(future.onIOPub.data['text/plain']))