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

Timothy Grindall
Timothy Grindall
7,843 Points

Your user object does not have a "Last Name" property.

So I got to this task in the code challenge for this part of the course which asks me to add a "First Name" property equal to "Mike" and a "Last Name" property equal to "the Frog". I'm not sure I got the right syntax and it is saying my user object does not have a "Last Name" property. So I don't know what's going on.

users.json
{
"users": [
    {"First Name": "Mike"},
    {"Last Name" : "the Frog"}
]
}

1 Answer

John Lack-Wilson
John Lack-Wilson
8,181 Points

Hi Timothy, it is because you've got too many curly braces in there. It should be:

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