condition to check if a json object is having one array or multiple arrays in javasciprt code example Example: json arrays { "array": [{1,2,3,4,5,6}] }