public String toJsonString(Object object) {
    return String.valueOf(toJson(object));
  }
@Test
  public void testComplexObject() {
    Object complex = Pair.of("nested", Pair.of("moreNested", Pair.of("mostNestedSecret", SECRET)));
    String output = _obfuscator.toJsonString(complex);
    Assert.assertFalse(output.contains(SECRET));
  }