PR for code review

For optimization, it is better to only call the array.length() once (outside the for-loop).
Put this inside a variable so that the variable will store the value once.
Then use that variable inside the for-loop condition:
```
int jsonArrayCount = array.length();

for (int i = 0; i < jsonArrayCount; i++) {
```
:bow: