What is the proper format of a JSON Array file?
Well let’s start off by understanding what JSON is, JavaScript Object Notation. It’s a derivative of JavaScript that allows data to be passed between a server & a website in the form of objects. It’s similar to XML, except the JSON syntax is less invasive than XML and so it ends up having a bit of a smaller file size.
Below you’ll find a basic sample of a JSON array that has two objects.
[
{
"title":"Name of Article 1",
"image":"/images/press_article1.png",
"timestamp":"March 2011"
},
{
"title":"Name of Article 4",
"image":"/images/press_article2.png",
"timestamp":"March 2011"
}
]
Note: There are no commas on the last line of each array.
There are many other structures of JSON files, I highly suggest checking out the wiki page for other uses.