Merge pull request #6010 from erictleung/fix/note-on-commas-in-json

Add note on adding commas between JSON objects
pull/6023/head
Arsen Melikyan 2016-01-10 14:52:41 +04:00
commit 52601f33bd
1 changed files with 1 additions and 0 deletions

View File

@ -3466,6 +3466,7 @@
"Here is an example of a JSON object:",
"<blockquote>var ourMusic = [<br> {<br> \"artist\": \"Daft Punk\",<br> \"title\": \"Homework\",<br> \"release_year\": 1997,<br> \"formats\": [ <br> \"CD\", <br> \"Cassette\", <br> \"LP\" ],<br> \"gold\": true<br> }<br>];</blockquote>",
"This is an array of objects and the object has various pieces of <dfn>metadata</dfn> about an album. It also has a nested <code>formats</code> array. Additional album records could be added to the top level array.",
"<strong>Note</strong><br>You will need a comma in between objects in JSON objects with more than one object in the array.",
"<h4>Instructions</h4>",
"Add a new album to the <code>myMusic</code> JSON object. Add <code>artist</code> and <code>title</code> strings, <code>release_year</code> number, and a <code>formats</code> array of strings."
],