Skip to content

Releases: json-iterator/go

bug fix

01 Jul 07:29
Compare
Choose a tag to compare
  • fix #250 case insensitive field match
  • explit test case sensitive for #252
  • fix #261 should load from reader
  • fix #260, support rename for extra.SupportPrivateFields
  • fix #263, support empty string as 0 in fuzz mode
  • fix #264 check io.EOF when test decoder.More
  • fix #274, unescape before base64 decode
  • Merge pull request #282 from caesarxuchao/optional-case-sensitivity
  • fix #276 allow rename when set naming strategy

expose DecoderOf and EncoderOf

18 Mar 00:14
Compare
Choose a tag to compare
  • fix #245, always reuse existing value even UseNumber
  • expose DecoderOf and EncoderOf
  • suport encode map[interface{}]interface{}

move reflect2 package

28 Feb 09:13
Compare
Choose a tag to compare

The reflect2 dependency has been pulled out from plz into its own. Also use concurrent.Map to wrap sync.Map for 1.8 support.

support 32bit platform

23 Feb 00:21
Compare
Choose a tag to compare
Pre-release

do not hard code IntSize and PtrSize to 64

Make unsafe safer by reflect2

22 Feb 02:46
Compare
Choose a tag to compare
Pre-release

Instead of let unsafe cast spread across the codebase, starting from 1.1.0, json-iterator use reflect2 (https://github.com/v2pro/plz/tree/master/reflect2) package to implement unsafe reflection. Aslo the map encoder/decoder has been rewritten to use unsafe reflection.

Bug fix

16 Feb 06:50
Compare
Choose a tag to compare
  • support DisallowUnknownFields in golang 1.10
  • fix #236 distinguish upper/lower field names
  • improve marshal performance by #234

Bug fix

28 Jan 09:07
Compare
Choose a tag to compare
  • use sync.Map or mutex to make encoder/decoder cache thread safe
  • fix #198 use vendoring
  • fix #200 removed symbolic link
  • fix #202 crash on custom map encoder
  • fix #207 Encoding nil pointer to struct containing exported function leads to marshalling error
  • fix #214 do not wrap EOF
  • fix #217 when input is "null", should not report error for unmarshallable type
  • fix #219 nested field with json tag 'omitempty' should not be marshalled if it has zero value
  • fix #227 incorrect marshalling of json.Number for empty string
  • fix #228 Any.ToInt() resulting not nil LastError()

Bug fix

15 Nov 15:39
Compare
Choose a tag to compare

#190 jsoniter.Get([]byte("")) will panic
#191 support string escape for object fields
#194 handle array larger than 1Gb
#195 better error message when decoding float as int
#197 placeholderEncoder encodes interface{} incorrectly, causing fatal error

Bug fix

12 Oct 08:28
Compare
Choose a tag to compare
  • do not report error when field is unexported
  • #178 SkipAndReturnBytes should return copy of memory
  • #177 flush buffer should check available again
  • #180, add missing methods to jsoniter.Number
  • #181, support string as json.Number and jsoniter.Number
  • #184, support null as number
  • #183 limit error message size
  • #185 add jsoniter.Valid

Improve stdlib compatibility

18 Sep 00:46
Compare
Choose a tag to compare

Since 1.0.0, Merged Pull Requests

  • #172
  • #173
  • #170
  • #168
  • #167
  • added ValidateJsonRawMessage: true to ConfigCompatibleWithStandardLibrary