Displaying view entries in JSON format

I’m using a jquery events calendar js based (instead of sql and php) on a Web page (very similar to jQuery Event Calendar Demo Page) and in which I need to read the view entries in JSON format. On the onLoad object/event of the form I have the following:

$(document).ready(function() {

$(“#eventCalendarShowDescription”).eventCalendar({

eventsjson: ‘./XXX?OpenView?ReadViewEntries&outputformat=JSON’,

jsonDateFormat: ‘human’, // ‘YYYY-MM-DD HH:MM:SS’

etc

})

});

However, I get the following error message on my Web page: error getting json: ./XXX?OpenView?ReadViewEntries&outputformat=JSON.

What am I doing wrong/missing? Any help will be much appreciated. Thanks in advance.

Subject: Displaying view entries in JSON format

If you put the URL in a browser address bar does it show JSON? I would guess not.

From the URL you have posted though it will not work as it is not a valid URL, you have two ?

./XXX?OpenView?ReadViewEntries&outputformat=JSON.

should be

./XXX?ReadViewEntries&outputformat=JSON.

Also JSON is a format, it doesn’t mean it is in the right JSON format. The calendar may expect JSON in a certain format, and the view rendering isn’t the JSON format it expects.