Repository navigation
Release 0.127.0
Changes to staj streaming classes
-
json_cursorno longer has a constructor that accepts astaj_filter.
Use afiltered_staj_readerinstead. -
The
staj_eventfunctionas<T>has been deprecated and renamed toget<T>. -
The
staj_eventfunctionaccepthas been renamed toread_to.
Enhancements
-
New macro
JSONCONS_NONDEFAULT_MEMBER_TRAITS_DECL, that, when decoding to a C++ object,
requires all data members declared for the object to be present in the JSON (or other supported
format.) -
Types that are specialized in
json_type_traitsare no longer required to have a public default
constructor. In particular, types that are specialized usingJSONCONS_MEMBER_TRAITS_DECL
orJSONCONS_NONDEFAULT_MEMBER_TRAITS_DECLmay have a private default constructor +JSONCONS_TYPE_TRAITS_FRIEND,
and types that are specialized withJSONCONS_GETTER_CTOR_TRAITS_DECLare not required to have a default
constructor at all.