GitPedia
json-iterator

json-iterator/go

A high-performance 100% compatible drop-in replacement of "encoding/json"

20 Releases
Latest: 4y ago
fix go 1.18 compatibilityv1.1.12Latest
taowentaowen·4y ago·September 11, 2021
GitHub
bug fixv1.1.11
AllenX2018AllenX2018·5y ago·April 28, 2021
GitHub

📋 Changes

  • Fixed json iter doesn't work properly with nil RawMessage #469
  • Fixed null in number json tag string (#480)
  • Fixed errors during reading integers from chunked io.Reader #477
  • Fixed nil pointer panic when Unmarshal with a empty file #508
  • Fixed [float string]different result vs origin after call Marshal & Unmarshal #510
bug fixv1.1.10
AllenX2018AllenX2018·6y ago·June 9, 2020
GitHub

📋 Changes

  • Fix #459 map keys of custom types should serialize using `MarshalText` when available
  • Fix potential panic in `(*stringAny).ToInt64` and `(*stringAny).ToUint64`(see #450)
  • Fix #449 do NOT marshal the field whose name start with underscore
  • Reuse stream buffer and remove flush in `(*Stream).WriteMore`(see #441 #440)
  • Fix #421 simplify the error string returned by the decoder when it meets error unmarshaling anonymous structs
  • Fix #389 #411 do NOT marshal the `json.RawMessage` type field whose real type is integer/float as "null" with `ValidateJsonRawMessage` option enabled
  • Fix #326 do Not marshal private field after calling `extra.SetNamingStrategy()` to register naming strategy extension
bug fixv1.1.9
taowentaowen·6y ago·December 21, 2019
GitHub
re-publish 1.1.8 as v1.1.8v1.1.8
taowentaowen·6y ago·October 30, 2019
GitHub
bug fix1.1.8
taowentaowen·6y ago·October 17, 2019
GitHub
bug fixv1.1.7
taowentaowen·6y ago·July 24, 2019
GitHub
bug fixv1.1.6
taowentaowen·7y ago·March 12, 2019
GitHub

📋 Changes

  • fix #311 handle nil any
  • fix #313 support json marshaller type as map key
  • fix #308 do NOT skip embedded structs without tag when OnlyTaggedField
  • fix #317, try parse as BigFloat if overflow
  • Fix trailing newline
re-release 1.1.5 as v1.1.5v1.1.5
taowentaowen·7y ago·August 25, 2018
GitHub
bug fix1.1.5
taowentaowen·7y ago·August 6, 2018
GitHub

fix #293 copy extensions fix #286 calcHash should use byte not rune to calc hash fix #291 omit empty was not handled properly for json raw message fix #295 decoder more was not compatible with standard library

bug fix1.1.4
taowentaowen·7y ago·July 1, 2018
GitHub

📋 Changes

  • 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
  • + 1 more
expose DecoderOf and EncoderOf1.1.3
taowentaowen·8y ago·March 18, 2018
GitHub

📋 Changes

  • fix #245, always reuse existing value even UseNumber
  • expose DecoderOf and EncoderOf
  • suport encode map[interface{}]interface{}
move reflect2 package1.1.2
taowentaowen·8y ago·February 28, 2018
GitHub

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 platform1.1.1Pre-release
taowentaowen·8y ago·February 23, 2018
GitHub

do not hard code IntSize and PtrSize to 64

Make unsafe safer by reflect21.1.0Pre-release
taowentaowen·8y ago·February 22, 2018
GitHub

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 fix1.0.6
taowentaowen·8y ago·February 16, 2018
GitHub

📋 Changes

  • support DisallowUnknownFields in golang 1.10
  • fix #236 distinguish upper/lower field names
  • improve marshal performance by https://github.com/json-iterator/go/pull/234
Bug fix1.0.5
taowentaowen·8y ago·January 28, 2018
GitHub

📋 Changes

  • 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
  • + 2 more
Bug fix1.0.4
taowentaowen·8y ago·November 15, 2017
GitHub

#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 fix1.0.3
taowentaowen·8y ago·October 12, 2017
GitHub

📋 Changes

  • 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 1.0.2
taowentaowen·8y ago·September 18, 2017
GitHub

📋 Changes

  • https://github.com/json-iterator/go/pull/172
  • https://github.com/json-iterator/go/pull/173
  • https://github.com/json-iterator/go/pull/170
  • https://github.com/json-iterator/go/pull/168
  • https://github.com/json-iterator/go/pull/167
  • added ValidateJsonRawMessage: true to ConfigCompatibleWithStandardLibrary