I have an Array thats pulling back about 20 sets of items from a JSON FILE:
$.getJSON('jsonfile.json', function(data){
var variable = data.twenty_items;
But I only wanted lets say 5 to be retrieved
-Or maybe i wanted only 10 to be called back
can someone help me with this..How do i approach this?
You can ignore the extra items in your code.
For example:
If you want to save the bandwidth, you’ll need to write a server-side script that parses the JSON and returns a subset of it.