support filtering nested jsons
added support for half-masking