class CanonicalJsonFormatter {

    public static InputStream serialize(JsonNode node) {
        try {
            ByteArrayOutputStream outputStream = new ByteArrayOutputStream(1024);
            serialize(node, outputStream);
            return outputStream.toInputStream();
        } catch (IOException e) {
            throw new IllegalStateException("Unexpected IO exception on memory stream", e);
        }
    }

    private  CanonicalJsonFormatter(OutputStreamWriter writer);

}