private void readFromJsonResource() {
        if (ResourceUtils.doesResourceExist(jsonResource)) {
            FunctionUtils.doUnchecked(__ -> {
                try (val reader = new InputStreamReader(jsonResource.getInputStream(), StandardCharsets.UTF_8)) {
                    val personList = new TypeReference<Map<String, String>>() {
                    };
                    val results = MAPPER.readValue(JsonValue.readHjson(reader).toString(), personList);
                    devices.clear();
                    devices.putAll(results);
                }
            });
        }
    }
This is {@link JsonResourceQRAuthenticationDeviceRepository}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-qr-authentication/src/main/java/org/apereo/cas/qr/authentication/JsonResourceQRAuthenticationDeviceRepository.java