support JSON hash/array in filter_record_transformer

a proposed implementation for #521