Skip to content
Advertisement

Reverse of JSON.stringify?

I’m stringyfing an object like {'foo': 'bar'}

How can I turn the string back to an object?

Advertisement

Answer

You need to JSON.parse() your valid JSON string.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement