def METHOD_NAME(self):
    tc = CMakeToolchain(self)
    tc.variables["JSONCPP_WITH_TESTS"] = False
    tc.variables["JSONCPP_WITH_WARNING_AS_ERROR"] = False
    tc.variables["JSONCPP_WITH_CMAKE_PACKAGE"] = False
    tc.variables["JSONCPP_WITH_STRICT_ISO"] = False
    tc.variables["JSONCPP_WITH_PKGCONFIG_SUPPORT"] = False
    jsoncpp_version = Version(self.version)
    if jsoncpp_version < "1.9.0" or jsoncpp_version >= "1.9.4":
        tc.variables["BUILD_STATIC_LIBS"] = not self.options.shared
    if jsoncpp_version >= "1.9.3":
        tc.variables["JSONCPP_WITH_EXAMPLE"] = False
    if jsoncpp_version >= "1.9.4":
        tc.variables["BUILD_OBJECT_LIBS"] = False
    if jsoncpp_version < "1.9.0":
        # Honor BUILD_SHARED_LIBS from conan_toolchain (see https://github.com/conan-io/conan/issues/11840)
        tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0077"] = "NEW"
    # No opt-out of ccache
    if Version(self.version) < "1.9.3":
        tc.cache_variables["CCACHE_FOUND"] = ""
    else:
        tc.cache_variables["CCACHE_EXECUTABLE"] = ""
    tc.METHOD_NAME()