I know there are many similar questions to this. But any of them doesn't work for me.
I have a json array which the whole structure is like this:
The array the i want to get is this:
The structure of that json array is:
I want to get the length of that json array. In the image case above it is 4. What I tried so far is this:
console.log( $( data.studentMockBeanMap ).size() );
console.log( $(data.studentMockBeanMap ).length );.
Which both returns 1
I also try this one:
var x = JSON.stringify(data.studentMockBeanMap);
console.log( x.length );
Which returns 2257, which IMO it also returns the sum of all json object.
How can I only the size on the image i boxed above?