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 trial

JavaScript AJAX Basics (retiring) Programming AJAX Processing JSON Data

How to get data from web server and parse them to JSON format?

Are there any tutorials in TreeHouse to get data from a web-Server and convert them to JSON format?

1 Answer

Steven Parker
Steven Parker
229,783 Points

The opposite of JSON.parse is JSON.stringify.

I think that's what you're after, but I might expect data from a server would already be in JSON format. And I would also have expected it to be covered in the course you're taking now, isn't it?

But even if not, there's always the handy MDN documentation.

Thank you Steven. That helps. :-)