Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (7k points)
Given a string of JSON data, how can I safely turn that string into a JavaScript object?

1 Answer

0 votes
by (13.1k points)

If you are using modern browsers as of 2021, JSON.parse(jsonString) can be used to turn a JSON string into an object.

Want to be a full stack developer? Check out the full stack developer course from Intellipaat.

Related questions

0 votes
1 answer
asked Feb 15, 2021 in Web Technology by Jake (7k points)
0 votes
1 answer
asked Feb 22, 2021 in Web Technology by Jake (7k points)
0 votes
1 answer
0 votes
0 answers

Browse Categories

...