Skip to content

Release 0.127.0

Choose a tag to compare

@danielaparker danielaparker released this 23 Jun 11:43
· 8765 commits to master since this release

Changes to staj streaming classes

  • json_cursor no longer has a constructor that accepts a staj_filter.
    Use a filtered_staj_reader instead.

  • The staj_event function as<T> has been deprecated and renamed to get<T>.

  • The staj_event function accept has been renamed to read_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_traits are no longer required to have a public default
    constructor. In particular, types that are specialized using JSONCONS_MEMBER_TRAITS_DECL
    or JSONCONS_NONDEFAULT_MEMBER_TRAITS_DECL may have a private default constructor + JSONCONS_TYPE_TRAITS_FRIEND,
    and types that are specialized with JSONCONS_GETTER_CTOR_TRAITS_DECL are not required to have a default
    constructor at all.