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

Create a JSON document with an empty array named users. Please help not sure what am doing wrong

"{"users": [ ] }"

users.json
"{"User": [ ] }"

2 Answers

andren
andren
28,558 Points

There are two issues:

  1. You should not wrap the entire JSON document in quotes.
  2. The task asks you to name the array users you have named it User, you need to use the exact same spelling and capitalization as the task asks for.

If you fix those two issues like this:

{"users": [ ] }

Then you will be able to move on to task 2.

Thank you it worked