Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialammarkhan
Front End Web Development Techdegree Student 21,661 PointsCovering advance topic in javascript
I am working on a project which uses a lot of .push method to push data or in a API call or just simply page. It also uses JSON.parse and stringfy. I cannot find a course that covers the both. A little help will be helpful?
1 Answer
Tim Acker
Front End Web Development Techdegree Graduate 31,247 PointsCheckout Mozilla Developer Network (MDN)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
The gist is JSON.parse() takes a string and converts it into an object and JSON.stringify() takes an object and converts it into a string.