Added jsonArrayCount instead of jsonArray.length()