support JSON hash/array in filter_record_transformer

a proposed implementation for #521 
Both PlaceholderExpander and RubyPlaceholderExpander should work in the same way. 
It seems the current PlaceholderExpander replaces placeholders in hash keys, but RubyPlaceholderExpander does not.