public void encode() throws IOException {
            encodeValue(top);
            if (indent != null) {
                out.append((byte) '\n');
            }
            out.flush();
        }
Returns the given UTF-8-encoded JSON as a Slime object
vespajlib/src/main/java/com/yahoo/slime/JsonFormat.java