improved mimic masking of json