support JSON hash/array in filter_record_transformer

a proposed implementation for #521 
Good point. I should move that out. It's a bit trickier for RubyPlaceholder since expanding placeholders/traversing Hash/Array are interlaced.