JsonDocument memory declaration

you could have continued the discussion in the previous thread

why do you allocate/instantiate the documents within the for loop?