Count of table elements set by JSON PARSE
JSON texts do not necessarily include a count of values in an array. To determine how many table elements are set by a given JSON PARSE statement, preset all occurrences of the table to a special value.
The preset value should be known to be absent from the incoming JSON array values, then after execution of the JSON PARSE statement, search the table for the first occurrence of the special value. The preceding values are those that were set by the JSON PARSE statement.