diff --git a/include/nlohmann/detail/output/serializer.hpp b/include/nlohmann/detail/output/serializer.hpp index 1710b7ce7..1cad019d5 100644 --- a/include/nlohmann/detail/output/serializer.hpp +++ b/include/nlohmann/detail/output/serializer.hpp @@ -380,7 +380,6 @@ class serializer const bool ensure_ascii, const unsigned int indent_step, const unsigned int current_indent = 0) { - // o->write_characters(UnderlyingType::get_annotation("property3").c_str(), UnderlyingType::get_annotation("property1").size()); switch (val.m_data.m_type) { case value_t::object: diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index f7ea7f0be..c06a4be43 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -4217,8 +4217,6 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec /// the value of the current element json_value m_value = {}; - std::string m_annotation{""}; - data(const value_t v) : m_type(v), m_value(v) { @@ -4257,10 +4255,6 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec /// @{ public: - void annotate(const std::string& annotation) { - m_data.m_annotation = annotation; - } - /// @brief create a CBOR serialization of a given JSON value /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/ static std::vector to_cbor(const basic_json& j)