Issue 1333: JSON needs to be wrapped in [] (For Firefox, possilby other browsers)
Status:  WontFix
Owner: ----
Closed:  Aug 2013
Reported by pcann...@gmail.com, Mar 9, 2012
I had an issue when trying to use a JSON source. It simply wouldn't work, despite the direct output being correctly formatted.

Turns out it wouldn't work unless I wrapped my JSON object in [] brackets.

Surely just using json_encode() should be enough? Fullcalendar should take into account the missing [] (as they are not added to the json object by json_encode)
Mar 12, 2012
#1 pcann...@gmail.com
I should clarify on this, now I have more information.

It seems that PHP only wraps a JSON object in [] if there are more then 1 items. This is PHP's natural behaviour, and therefore I believe FullCalendar should understand this exception and work around it,
Aug 15, 2013
Project Member #2 adamrs...@gmail.com
this is a problem in PHP's end that you need to work around. it stems from PHP's ambiguous definition of an "array". When empty, PHP doesn't know if it should be an "object" or a real array when jsonified. you'll just have to work around this behavior
Status: WontFix