Skip to content

Version 0.13.0

Latest

Choose a tag to compare

@ibireme ibireme released this 08 Sep 18:21
6447536

Added

  • Add a set of write_buf() functions for writing JSON to a buffer without allocation.
  • Add YYJSON_FREESTANDING compile-time option to build without libc (e.g. wasm).
  • Add YYJSON_DISABLE_FILE compile-time option to disable file/fp read and write APIs.
  • Add YYJSON_READER_DEPTH_LIMIT and YYJSON_WRITER_DEPTH_LIMIT compile-time options.
  • Add YYJSON_WRITE_LOWERCASE_HEX flag to write \uXXXX escapes in lowercase: #264.
  • Add Swift Package Manager traits for compile-time configuration: #245.

Changed

  • Change set_int() parameter type from int to int64_t: #240.
  • Add const qualifier to parameters of read-only functions: #248.

Fixed

  • Fix tinycc preprocessor error: #233.
  • Fix an uninitialized read when parsing numbers: OSS-Fuzz #498706935.
  • Fix integer truncation when parsing extremely large numbers.
  • Fix incr_read() when a value is split across input chunks.
  • Fix iter_remove() when called twice in a row.
  • Handle read errors from non-seekable streams and writing empty files.