i have code in csharp that returns this string:
{'dateTimeFormat': 'iso8601', 'wikiURL': "http://simile.mit.edu/shelf/", 'wikiSection': "Simile Cubism Timeline", 'events' : [ {'start': '1924', 'title': 'Barfusserkirche', 'description': 'by Lyonel Feininger, American/German Painter, 1871-1956', 'image': 'http://images.allposters.com/images/AWI/NR096_b.jpg', 'link': 'http://www.allposters.com/-sp/Barfusserkirche-1924-Posters_i1116895_.htm' } ] }
i want to ship this back to my view as a JSon structure, but it doesn't seem to be working:
here is my controller code:
public JsonResult GetTimeLineJson(int id)
{
RoadmapItem item = new RoadmapItem();
string timelineString = [There is a function here that returns the string above];
return Json(timelineString);
}
and here is my jquery code:
var URL = "/Business/GetTimeLineJson/" + resourceId;
$.getJSON(URL, function(data) {
$('#deskView').show();
onLoad(data);
});
any idea whats going wrong here