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

JSON

Challenge Task 1 of 1

Add 3 more song objects to this JSON file, each with "title" and "artist" attributes.

Mod Note - Changed topic tag from Java to JavaScript.

1 Answer

rydavim
rydavim
18,814 Points

You've originally tagged this as Java, but my guess is that you're actually working on the JavaScript code challenge Finish the JSON File. Please let me know if this is incorrect.

You'll need to add more objects to the array using a specific syntax.

{  // open with a curly brace
    "title" : "Song Title", // add key-value pairs - don't forget the " quotes and the , comma!
    "artist" : "Song Artist"
}, // end with a curly brace - don't forget the , comma if you have more objects to add!