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 trialChristina D'Astolfo
15,020 PointsJSON Code Challege Help
Hoping someone can help with this. I can't get past the second part of the first JSON code challenge in the "Create a Plugin for Wordpress" course. When I enter in the code below:
{ "users": [ {"first_name": "Mike", "last_name": "the Frog"} ] }
I get the error "Task 1 is no longer passing." Task 1 was to create a JSON document with an empty array called "users", and task two was to add a user with the first name "Mike" and last name "the Frog". It's asking me to put something in the array, so of course Task 1 is no longer going to pass. Is there something else that I'm missing?
5 Answers
Erik McClintock
45,783 PointsChristina,
Are you still stuck on this? If so, here is some help:
Keep in mind that these code challenges are usually looking for something very specific, so it's always important to first check your spelling, punctuation, capitalization, etc.
In this case, your code looks fine except for the names of your keys: the challenge wants "First Name" and "Last Name", and you've entered "first_name" and "last_name". Correct this and you'll be good to go!
Hope this helps!
Erik
Christina D'Astolfo
15,020 PointsThaaaat'll do it! Thanks so much!
Erik McClintock
45,783 PointsGlad I could help :)
Happy coding!
Erik
Annie Scott
27,613 PointsTask 1 { "users": [ ] }
Task 2
"users":[ {"First Name": "Mike", "Last Name": "the Frog"} ]
Good luck had to go to other places to learn this, no help with this video at all
Ladwell Zuze
5,656 PointsThat's true,thanks for the help ;-)
Annie Scott
27,613 Pointstask 2
{ "users": [ {"First Name": "Mike", "Last Name": "the Frog"} ] }