@Override
    public void render(OutputStream stream) throws IOException {
        new JsonFormat(compact).encode(stream, slime);
    }
A generic Json response using Slime for JSON encoding

@author bratseth
container-core/src/main/java/com/yahoo/restapi/SlimeJsonResponse.java