Skip to content

Releases: BitoLabs/ujson

1.3.0

19 Dec 22:43

Choose a tag to compare

New features

  • The Json::parse() and parse_in_place() methods now have
    an additional options parameter, which can turn ON/OFF
    additional syntax that is not present in JSON standard.

  • New optHex parsing option (OFF by default). It allows integers
    in hex format (like: 0x1A, 0X2b).

  • New optIdentifiers parsing option (OFF by default). It allows
    object member names as C identifiers without quotes: {foo: "bar"}.

  • Added parsing options that are ON by default.
    Previous version supported these features, but these could not
    be turned off. Note that JSON standard doesn't allow these:

    • optUniqueMembers: disallow duplicate member names within the
      object. Apparently standard JSON allows (but not recommends)
      duplicates, see https://datatracker.ietf.org/doc/html/rfc8259#section-4
    • optTrailingComma: allow one trailing comma in arrays and objects,
      like [1,2,].
    • optEmptyFraction: Allow floating point numbers with no digits after
      decimal point (like 1. or 2.e3).
    • optLineCommentC: allow // comments.

Changes

  • Raise ErrSyntax if a null character is found before the text ends,
    when the length of input is passed explicitly to parse() method.

Fixes

1.2.0

23 Nov 15:51

Choose a tag to compare

  • Added Arr::require_len().
  • Changed Arr index and length type from int32_t to size_t.

1.1.1

02 Oct 10:51

Choose a tag to compare

Fix "unreachable code" compiler warning

1.1.0

26 Jul 16:39

Choose a tag to compare

  • Add Obj::get_arr_opt(name), Obj::get_obj_opt(name).
  • Add u32 support.

1.0.3

04 Apr 16:59

Choose a tag to compare

Fix an error when compiling with GCC due to strncpy_s()

1.0.2

02 Dec 11:55

Choose a tag to compare

Make README.md compatible with BitBucket

1.0.1

29 Nov 18:42

Choose a tag to compare

Minor corrections in README.md

1.0.0

24 Nov 00:55

Choose a tag to compare

Initial release