following is my code.
$("document").ready(function () {
var dataName = new Array();
$.get('<%=request.getContextPath()%>/empBox/ajaxToGetCodes.do', function (responseText) {
var JSONcustomers = $.evalJSON(responseText);
var total = JSONcustomers["arrayObj1"].length;
var index = 0;
});
Although i'm getting the response text. But its not able to convert it to json. Giving the following error.
$.evalJSON is not a function.
Am adding all the necessary library to it. jquery-json.js and jquery.js
Any idea, what may be the problem??