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 trialCraig Mang
Courses Plus Student 580 PointsHow come Huston didn't parse the json file?
I've come to understand that json is not javascript itself but a string that can be parsed and then used as a javascript object. Yet Huston was able to retrieve values from the json file using keys without ever needing to parse the file beforehand, how?
Thummanoon Kunanuntakij
8,676 PointsThummanoon Kunanuntakij
8,676 PointsThe require() of Node.js do the work for you, It know that the file you want is a json file. It is okay with dummy data in static files for testing, but if you dynamically load data you still need to parse it.