I want to find the number of rows in each json object. For example,
SELECT A.firstName
FROM ABC c,
JSON_TABLE (c.abc_data, '$'
COLUMNS (NESTED PATH '$.names[*]' COLUMNS (firstName PATH '$.value'))) AS A;
In the above code there are multiple objects like $.names[*] and each of these object has multiple sub elements like firstName PATH '$.value'. I want to find out the count of rows that is present in each object like $.names[*].