get the length of a json js 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