Aggregate nested json value of hidden field

I saw this answer about aggregating a field from nested json, but when I try to do so with a hidden field prefixed by __, I get the “Could not access blank value” message in the payload. Is there a way to aggregate nested hidden fields?