eJMask is a JVM-based masking library that provides an easy-to-use API for masking sensitive data in your Java applications. With eJMask, you can quickly mask sensitive information like personal information, credit card numbers, and more.
Using the JsonFieldPatternBuilder, the masker appears to only mask string values, while ignoring other non-string values (e.g. numbers, booleans, ...etc).