public void encode(AbstractByteWriter os, Slime slime) throws IOException {
        new Encoder(slime.get(), os, indent).encode();
    }
Encodes json from a slime object.

@author Ulf Lilleengen
vespajlib/src/main/java/com/yahoo/slime/JsonFormat.java