Repository navigation
Release 0.146.0
Changes:
-
The name
rename_object_member_filterhas been deprecated and renamed to
rename_object_key_filter -
The
json_content_handlerpublic functionnamehas been deprecated and renamed tokey.
Rationale: in the future we'll likely support overloads for non-string keys for binary formats -
The
json_content_handlerprivate virtual functiondo_namehas been removed and replaced withdo_key.
Rationale: in the future we'll likely support overloads for non-string keys for binary formats
Enhancements:
-
New json_type_traits specialization for
std::shared_ptr<T>forTthat is not a polymorphic class,
i.e., does not have any virtual functions -
New json_type_traits specialization for
std::unique_ptr<T>forTthat is not a polymorphic class -
For the
_N_convenience macros that allow some non-mandatory members, the generated
traitsto_jsonfunction will exclude altogether empty values forstd::shared_ptr
andstd::unique_ptrnon-mandatory members, as they do currently forstd::optional.