public boolean isValidJson(final String json) {
        return FunctionUtils.doAndHandle(() -> !MAPPER.readTree(json).isEmpty(), t -> false).get();
    }
Is valid json?.

@param json the json
@return true/false
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/JsonUtils.java