@Test
public void testJSONAnnotationEscaping() throws Exception {

    Engine engine = GrobidFactory.getInstance().getEngine();
    File inputTmpFile = getInputDocument("/test/test_Grobid_1_05452615.pdf");
    Document tei = engine.fullTextToTEIDoc(inputTmpFile, GrobidAnalysisConfig.defaultInstance());
    // check that this embedded backslash is escaped properly
    String refURL = "http://example.com/xyz?a=ab\\c123";
    List<String> refURLs = Arrays.asList(refURL);
    String json = CitationsVisualizer.getJsonAnnotations(tei, refURLs);
    JsonNode root = mapper.readTree(json);
}