Nested JSON GENERATE or JSON PARSE statements

When a given JSON GENERATE or JSON PARSE statement appears in imperative-statement-1 or imperative-statement-2 of another JSON GENERATE or JSON PARSE statement, that given JSON GENERATE or JSON PARSE statement is a nested JSON GENERATE or JSON PARSE statement.

Nested JSON GENERATE or JSON PARSE statements are considered to be matched JSON GENERATE and END-JSON combinations, or JSON PARSE and END-JSON combinations, proceeding from left to right. Thus, any END-JSON phrase that is encountered is matched with the nearest preceding JSON GENERATE or JSON PARSE statement that has not been implicitly or explicitly terminated.