Can anyone share any working code example to use JSON with POI-TL. I tried the following but it does not work.
ConfigureBuilder builder = Configure.builder(); builder.addPreRenderDataCastor(new GsonPreRenderDataCastor());
XWPFTemplate.compile("template.docx", builder.build()) .render(myJson) .writeToFile("output.docx");
Somehow it keeps using the com.deepoove.poi.policy.TextRenderPolicy - The data [null] of the template {{fieldName}} is illegal...