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

Saud ALQahtani
Saud ALQahtani
7,842 Points

Inside the array, add an empty JavaScript object. This will hold our song.

it's so complicated... I need a clear answer ..HELP!!!

songs.json
[{"name": {} }] 

{
  firstName: "Saud",
  lastName: "ALQahtani"
}

2 Answers

andren
andren
28,558 Points

Just like an empty array is just a set of square brackets []. An empty object is just a set of curly braces {}. So an empty object inside an array looks like this:

[{}]
Saud ALQahtani
Saud ALQahtani
7,842 Points

thank you..... this is very hopeful

It's not working!!! Please, help. I have tried everything in all possible combinations.