diff --git a/include/zenoh/api/config.hxx b/include/zenoh/api/config.hxx index 4fa8ebea..27dc0d77 100644 --- a/include/zenoh/api/config.hxx +++ b/include/zenoh/api/config.hxx @@ -111,7 +111,7 @@ class Config : public Owned<::z_owned_config_t> { /// @return true if the parameter was inserted, false otherwise. /// @note zenoh-c only. void insert_json(const std::string& key, const std::string& value, ZResult* err = nullptr) { - __ZENOH_RESULT_CHECK(::zc_config_insert_json(interop::as_loaned_c_ptr(*this), key.c_str(), value.c_str()), err, + __ZENOH_RESULT_CHECK(::zc_config_insert_json5(interop::as_loaned_c_ptr(*this), key.c_str(), value.c_str()), err, std::string("Failed to insert '") .append(value) .append("' for the key '") @@ -149,4 +149,4 @@ class Config : public Owned<::z_owned_config_t> { } #endif }; -} // namespace zenoh \ No newline at end of file +} // namespace zenoh