private void toSlime(Snapshot snapshot, Cursor object) {
        object.setString("id", snapshot.id().toString());
        object.setString("state", SnapshotSerializer.asString(snapshot.state()));
        object.setBool("encrypted", true);
    }
Outputs the nodes in the given states to a node array
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/restapi/NodesResponse.java