public static byte[] toJson(ArchiveUris archiveUris) {
        Slime slime = new Slime();
        Cursor root = slime.setObject();

        Cursor tenantObject = root.setObject("tenant");
        archiveUris.tenantArchiveUris().forEach((tenant, uri) -> tenantObject.setString(tenant.value(), uri));

        Cursor accountObject = root.setObject("account");
        archiveUris.accountArchiveUris().forEach((account, uri) -> accountObject.setString(account.value(), uri));

        try {
            return SlimeUtils.toJsonBytes(slime);
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }
Serializer for archive URIs that are set per tenant and per account.

@author freva
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/ArchiveUriSerializer.java