class, not type, for the Perl/wG object type of each node in the toJson output tree