how to get the length of a json object which has array code example
Example: json object length in javascript
const data = { a : 'b', c : 'd' };
const length = Object.keys(data).length;
//Length is 2
const data = { a : 'b', c : 'd' };
const length = Object.keys(data).length;
//Length is 2