public static void writeValue(final Path outputFile, final Object object) {
        Preconditions.checkNotNull(object);
        Preconditions.checkNotNull(outputFile);
        try {
            getMapper().writeValue(outputFile.toFile(), object);
        } catch (final JsonProcessingException e) {
            throw new RuntimeException(String.format("Error serialising object %s to json",
                    object), e);
        } catch (final IOException e) {
            throw new UncheckedIOException(String.format("Error writing json to file %s",
                    outputFile.toAbsolutePath()), e);
        }
    }
Serialise object to the file described by path
stroom-util/src/main/java/stroom/util/json/JsonUtil.java