count of all object with id1 in json array javascript code example
Example: javascript count elements in json object
var myObject = {'name':'Sherlock', 'address':'221b Bakerstreet','city': 'London'}
var count = Object.keys(myObject).length;
console.log(count);