public static String maskJson(String input, String key) {
        if(input == null)
            return null;
        DocumentContext ctx = JsonPath.parse(input);
        return maskJson(ctx, key);
    }
@Test
    public void testMaskIssue942()
    {
        String input = "{\"name\":\"Steve\", \"list\":[{\"name\":\"Josh\", \"creditCardNumber\":\"4586996854721123\"}],\"password\":\"secret\"}";
        String output = Mask.maskJson(input, "testIssue942");
        System.out.println(output);
        Assert.assertEquals(output, "{\"name\":\"Steve\",\"list\":[{\"name\":\"Josh\",\"creditCardNumber\":\"****************\"}],\"password\":\"secret\"}");
    }