@Test
    public void testJsonMetadataOutput() throws Exception {
        String json = getParamOutContent("--json", "--digest=MD2", resourcePrefix + "testJsonMultipleInts.html");
        //TIKA-1310
        assertTrue(json.contains("\"html:fb:admins\":\"1,2,3,4\","));
        assertTrue(json.contains("\"X-TIKA:digest:MD2\":"));
    }
Basic tests for -json option

@throws Exception
tika-app/src/test/java/org/apache/tika/cli/TikaCLITest.java