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.

JavaScript AJAX Basics (retiring) Programming AJAX Create a JSON file

[ {"title" : "satisfaction"}, {"artist" : "sting"} ] What am I doing wrong? Everything looks correct..right?

What is wrong here?

songs.json
[
{"title" : "satisfaction"},
{"artist" : "sting"}
]

1 Answer

Tobias Helmrich
Tobias Helmrich
31,601 Points

Hey William,

your code is correct but you're making a second object for the artist property. The challenge wants you to store both properties in one object like so:

[
  {
    "title" : "satisfaction",
    "artist": "sting"
  }
]

If you have further questions feel free to ask, good luck! :)

Oh, okay. I get it now. Thank you very much for the tip and have a great day :)

Tobias Helmrich
Tobias Helmrich
31,601 Points

No problem, I'm glad you understand it now! :) Thanks, have a great day as well! :)