Jquery Loading Events from json file for Event Calender

Jquery Loading Events from json file for Event Calender

Hi,

I am new to Jquery. I am using a Jquery Event Calendar Plugin.
In this the Events are Hardcoded in javascript.

Now i want to fetch the Events from a file on the local server but i am unable to do that.

Need help. Thanking you in advance.

Please find the below code i am using for picking events from json file.

function loadEvents() {
                      $.ajax({
type:"POST",
                                           async: false,
                                 dataType: "json",              
                                          success: function (result) {
        events = result;

                    }
                });
            
        }

Below is my Json File is:

{
    "events": [
        {
            "title": "Hi",
            "description": "Event1",
            "datetime": "newDate(2014,9,12,17)"
        },
        {
            "title": "Hi",
            "description": "Event2",
            "datetime": "newDate(2014,8,17,16)"
        },
        {
            "title": "Hi",
            "description": "Event3",
            "datetime": "newDate(2014,10,23,16)"
        }
    ]
}