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

WordPress How to Build a WordPress Plugin Connecting WordPress Plugins with 3rd Party APIs JSON Code Challenge

Stephen Harnois
Stephen Harnois
8,656 Points

Help with Json Code Block

What is wrong with this json code? I am trying to add a user with First and Last name fields.

{ "users":{ "First Name":"Mike", "Last Name":"the Frog" } }

3 Answers

Ariel Guzman
Ariel Guzman
7,872 Points

There is nothing wrong with that json, you can use http://jsonlint.com/ to check if your json has the right format. Are you sure the problem is your json?

I think you are doing pretty well, Just have a look on the brackets. You are missing this one [] which means the users array.

Stephen Harnois
Stephen Harnois
8,656 Points

The Json was correct I was not answering the question the problem was asking. Thanks for the help.