Reputation: 115
I'm trying to convert an object to json using:
object.json();
I'm getting the following error:
core.js:15713 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'json' of undefined TypeError: Cannot read property 'json' of undefined
I think it's some change from the new version. Version 7
Can somebody help me?
Upvotes: 0
Views: 6425
Reputation: 97
The JSON.stringify()
method converts a JavaScript object or value to a JSON string
JSON.stringify(object)
Upvotes: 4