Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Zakaria Desai2,218 Points
Json On Windows
First off, take it easy if this has been answered before. I tried the obvious Dr Google, but cannot seem to get "Json" on windows enabled.
I am not even sure what exactly it does, just trying to follow along with this Mailchimp API tutorial, and I do have cURL running, but then Nate pipes the cURL request into Json, which is not working out on my PC.
Hey Zakaria --
Sorry for any confusion that caused. That was just an extra command I used to get the curl response to display in an orderly way for the videos. Curl will function if you omit the "
| json" portion of the request.
json command I used was an alias for a python tool that reorganizes JSON into a more human-readable format. I've never used it on a Windows machine, but I imagine it should work the same. You can substitute "
python -m json.tool" for "
json" and get the pretty version of the output.
Again, sorry for any confusion!
Tony Brackins26,489 Points
Zakaria Desai Here's a tutorial on making a shortcut form the terminal (I also have Mac, so might have to do the Windows version).
You'll want to create an alias that command json='python -m json.tool'