Export Added Event using AJAX

Hello,

I am using Python as server script. I would like to add a single event as a JSON object and send it to Server. Is it possible to get Event as JSON object?

scheduler.attachEvent(“onEventSave”,function(id,data,is_new_event){
$.post(url,data,function(responseCode){
alert(“Updated Schedule successfully”);
},“json”);
});

Thanks,
Nitin

var obj = scheduler.getEvent(id);

returns js object, you can use JSON.stringify(obj) to serialize it to json string.