Saravana Kumar Saravana Kumar - 1 year ago 92
AngularJS Question

How to remove parentheses from JSON in start and end?

I have a Json Object look like ,


I don't know how to remove the parentheses from the starting and ending of the JSON like
. Please guide me.

Answer Source

My guess is that you are trying to access JSONP data. You probably need to add ?callback=? to your URL

var url="";
    $.getJSON(url+'?callback=?', function(json){
        //loop through deals
            $("#todaycal").append("<li>""  "+dat.caseNo+"</li>");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download