Revert redundant changes
This commit is contained in:
parent
e9fe11365b
commit
32eedd480a
@ -380,7 +380,6 @@ class serializer
|
|||||||
const bool ensure_ascii,
|
const bool ensure_ascii,
|
||||||
const unsigned int indent_step,
|
const unsigned int indent_step,
|
||||||
const unsigned int current_indent = 0) {
|
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)
|
switch (val.m_data.m_type)
|
||||||
{
|
{
|
||||||
case value_t::object:
|
case value_t::object:
|
||||||
|
|||||||
@ -4217,8 +4217,6 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
/// the value of the current element
|
/// the value of the current element
|
||||||
json_value m_value = {};
|
json_value m_value = {};
|
||||||
|
|
||||||
std::string m_annotation{""};
|
|
||||||
|
|
||||||
data(const value_t v)
|
data(const value_t v)
|
||||||
: m_type(v), m_value(v)
|
: m_type(v), m_value(v)
|
||||||
{
|
{
|
||||||
@ -4257,10 +4255,6 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void annotate(const std::string& annotation) {
|
|
||||||
m_data.m_annotation = annotation;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @brief create a CBOR serialization of a given JSON value
|
/// @brief create a CBOR serialization of a given JSON value
|
||||||
/// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
|
/// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
|
||||||
static std::vector<std::uint8_t> to_cbor(const basic_json& j)
|
static std::vector<std::uint8_t> to_cbor(const basic_json& j)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user