How can we format our API Json like the first block of code below? Do we need to put it in an array, string, object? Our issue is that Full Calendar can get events from the first block of code, but not ours, the second block of code.
http://www.json-generator.com/api/json/get/ccUKVDYErS?indent=2
[
{
"start": "2014-08-01",
"title": "All Day Event"
},
{
"start": "2014-01-07",
"end": "2014-08-10",
"title": "Long Event"
},
{
"start": "2014-08-09T16:00:00",
"id": 999,
"title": "Repeating Event"
},
{
"start": "2014-08-16T16:00:00",
"id": 999,
"title": "Repeating Event"
},
{
"start": "2014-08-12T10:30:00",
"end": "2014-08-12T12:30:00",
"title": "Meeting"
},
{
"start": "2014-08-22T12:00:00",
"title": "Lunch"
},
{
"start": "2014-08-13T07:00:00",
"title": "Birthday Party"
},
{
"url": "http://google.com/",
"start": "2014-08-28",
"title": "Click for Google"
}
]
Our API currently looks like this (everything is a string),
[{"start":"2016-04-12","end":"2016-04-12","title":"Calendar 1","id":"a41380d1fbbaa819"}]