I’m trying to use Laravel and DHtmlX Scheduler. I’ve got Laravel sending data from the controller in the following format:
[{"id":1,"text":8,"start_date":"2013-10-23 00:00:00","end_date":"2013-10-24 00:00:00"},{"id":2,"text":8,"start_date":"2013-10-23 07:00:00","end_date":"2013-10-23 08:22:00"}]
According to everything I’ve read this is valid JSON and is the default that Laravel sends. DHtmlX is expecting the same code in this format:
[{id:1,text:8,start_date:"2013-10-23 00:00:00",end_date:"2013-10-24 00:00:00"},{id:2,text:8,start_date:"2013-10-23 07:00:00",end_date:"2013-10-23 08:22:00"}]
Which is just a JS array, not valid JSON. (Notice absence of “” on key) How can I change what DHtmlX is expecting so it supports valid JSON?
Thanks!