class AlertDefineJsonImExportServiceImpl extends AlertDefineAbstractImExportServiceImpl {
    public static final String TYPE = "JSON";
    public static final String FILE_SUFFIX = ".json";

    private final ObjectMapper objectMapper;

    @Override
    public String type() {
        return TYPE;
    }

    @Override
    public String getFileName() {
        return fileNamePrefix() + FILE_SUFFIX;
    }

    @Override
    List<ExportAlertDefineDTO> parseImport(InputStream is) {<FILL_FUNCTION_BODY>}

    @Override
    void writeOs(List<ExportAlertDefineDTO> exportAlertDefineList, OutputStream os) {
        try {
            objectMapper.writeValue(os, exportAlertDefineList);
        } catch (IOException ex) {
            log.error("export alertDefine failed.", ex);
            throw new RuntimeException("export alertDefine failed");
        }
    }
}

        try {
            return objectMapper.readValue(is, new TypeReference<>() {
            });
        } catch (IOException ex) {
            log.error("import alertDefine failed.", ex);
            throw new RuntimeException("import alertDefine failed");
        }
    
<methods>public non-sealed void <init>() ,public void exportConfig(java.io.OutputStream, List<java.lang.Long>) ,public void importConfig(java.io.InputStream) <variables>private org.apache.hertzbeat.alert.service.AlertDefineService alertDefineService