I am trying to use json output in jquery method.
$(function() {
$.getJSON("/items/list/", function(json) {
var source = json;
alert(source.os[0]);
});
});
It does not work. But when I directly goto the url(/items/list/), I see the json output. It looks something like this..
{"os":["Windows","Chrome","Mac OS X"], "languages":["php", "Java"]}
I appreciate any help.
Thanks.