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

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,602 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,602 Points

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