Skip to content

Release 0.137.0

Choose a tag to compare

@danielaparker danielaparker released this 04 Nov 20:34
· 7958 commits to master since this release

Defect fixes:

  • Fixes GCC 9.2 warning: ‘class jsoncons::json_exception’
    has virtual functions and accessible non-virtual destructor,
    contributed by KonstantinPlotnikov.

Enhancements:

  • Includes Martin Moene's span-lite to support a C++20-like span in the jsoncons namespace.

  • Includes enhancements to the CBOR encode and decode classes and functions to support the
    CBOR extension Tags for Typed Arrays.
    The implementation uses the span class.

Changes:

  • The json_options parameter to precision() has been changed from int to int8_t

  • The json_options parameter to indent_size() has been changed from size_t to uint8_t

  • The csv_options parameter to precision() has been changed from int to int8_t

  • The CSV extension enum name quote_style_type has been deprecated and renamed to quote_style_kind.

  • The CSV extension enum name mapping_type has been deprecated and renamed to mapping_kind.

  • The do_ virtual functions in basic_json_content_handler have been augmented with a std::error_code
    output parameter, e.g.

    virtual bool do_begin_object(semantic_tag tag, const ser_context& context, std::error_code& ec) = 0;