/** Extracts the fields from a json record and returns a map containing field names and values */ @Override Map<String, Object> extractFields(String line) { try { return reader.readValue(line); } catch (IOException e) { logger.error("Exception while extracting fields {}", e); } return null; }