private Map<String, Set<CredentialRegistration>> readFromJsonRepository() {
        return FunctionUtils.doUnchecked(() -> {
            LOGGER.trace("Ensuring JSON repository file exists at [{}]", location.getFile());
            val result = location.getFile().createNewFile();
            if (result) {
                LOGGER.trace("Created JSON repository file at [{}]", location.getFile());
            }
            if (location.getFile().length() > 0) {
                LOGGER.trace("Reading JSON repository file at [{}]", location.getFile());
                return new ConcurrentHashMap<>(WebAuthnUtils.getObjectMapper().readValue(location.getFile(), new TypeReference<>() {
                }));
            }
            return new ConcurrentHashMap<>(0);
        });
    }
This is {@link JsonResourceWebAuthnCredentialRepository}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-webauthn-core/src/main/java/org/apereo/cas/webauthn/storage/JsonResourceWebAuthnCredentialRepository.java