javascript - $.getJson() response limit -
i'm using $.getjson() function return array located in separate json file , store local array var. problem i'm having i'm getting 20 of total 25 items json. $.getjson have limit number of returned items?
this how i'm using code:
javascript:
$.getjson('data/griddata1.json',function(json){ console.log("json length is: " + json.length); var grid = json; filtergrid(grid, ele); });
json:
[ {"assignment":"tom" , "cell":["tom", "2013-10-06", "client 3", "activity", "scheduled" ]} ,{"assignment":"tom" , "cell":["tom", "2007-10-06", "client 2", "alert" , "work in progress" ]} ,{"assignment":"tom" , "cell":["tom", "2013-10-06", "client 3", "activity", "in progress" ]} ,{"assignment":"tom" , "cell":["tom", "2007-10-06", "client 1", "lead" , "qualified" ]} ,{"assignment":"tom" , "cell":["tom", "2007-10-06", "client 2", "alert" , "open" ]} ,{"assignment":"jenny" , "cell":["jenny" , "2007-10-06", "client 1", "notification" , "new" ]} ,{"assignment":"jenny" , "cell":["jenny" , "2007-10-06", "client 3", "lead" , "qualified" ]} ,{"assignment":"jenny" , "cell":["jenny" , "2007-10-05", "client 2", "lead" , "unqualified" ]} ,{"assignment":"jenny" , "cell":["jenny" , "2007-10-05", "client 1", "activity" , "in progress" ]} ,{"assignment":"jenny" , "cell":["jenny" , "2007-10-05", "client 3", "lead" , "qualified" ]} ,{"assignment":"jenny" , "cell":["jenny" , "2007-10-04", "client 3", "lead" , "unqualified" ]} ,{"assignment":"katie" , "cell":["katie", "2007-10-06", "client 2", "activity" , "draft" ]} ,{"assignment":"katie" , "cell":["katie", "2007-10-06", "client 1", "activity" , "draft" ]} ,{"assignment":"katie" , "cell":["katie", "2007-10-06", "client 2", "activity" , "in progress" ]} ,{"assignment":"brad" , "cell":["brad" , "2007-10-06", "client 1", "activity" , "scheduled" ]} ,{"assignment":"brad" , "cell":["brad" , "2007-10-06", "client 3", "activity" , "scheduled" ]} ,{"assignment":"brad" , "cell":["brad" , "2007-10-05", "client 2", "activity" , "in progress" ]} ,{"assignment":"brad" , "cell":["brad" , "2007-10-05", "client 1", "alert" , "work in progress" ]} ,{"assignment":"brad" , "cell":["brad" , "2007-10-05", "client 3", "alert" , "open" ]} ,{"assignment":"brad" , "cell":["brad" , "2007-10-04", "client 3", "notification" , "new" ]} ,{"assignment":"hank" , "cell":["hank", "2013-10-06", "client 3", "lead", "unqualified" ]} ,{"assignment":"hank" , "cell":["hank", "2007-10-06", "client 2", "alert" , "work in progress" ]} ,{"assignment":"hank" , "cell":["hank", "2007-10-06", "client 1", "lead" , "qualified" ]} ,{"assignment":"hank" , "cell":["hank", "2007-10-06", "client 2", "alert" , "open" ]} ,{"assignment":"mike" , "cell":["mike" , "2007-10-04", "client 3", "notification" , "new" ]} ]
the console log shows result: 20. there i'm missing?
there no set limit on size of json response, more there on html or xml response. can have large json responses no problem. vs. post have nothing this. different in way request sent server; response format , post identical.
though in case of request server large amount of data ,post preferred, response server has no limit in both , post
Comments
Post a Comment