1
0
mirror of https://github.com/json-iterator/go.git synced 2024-11-27 08:30:57 +02:00
Commit Graph

18 Commits

Author SHA1 Message Date
Oleg Shaldybin
9f6e5962a9 Improve stdlib compatibility
1. Null values for primitive types no longer clear the original value in
the destination object.

2. Dereference multiple levels of pointers in the destination interface{}
type before unmarshaling into it. This is needed to match stdlib
behavior when working with nested interface{} fields. If the destination
object is a pointer to interface{} then the incoming nil value should
nil out the destination object but keep the reference to that nil value
on its parent object. However if the destination object is an
interface{} value it should set the reference to nil but keep the
original object intact.

3. Correctly handle typed nil decode destinations.
2017-09-16 16:57:51 -07:00
Tao Wen
9b3ec40fd9 #133 fix empty struct skip; fix ] as empty array 2017-07-17 09:09:00 +08:00
Tao Wen
0187038bad check null/true/false 2017-07-10 15:23:35 +08:00
Tao Wen
b74ffb2e03 import github.com/stretchr/testify/require 2017-07-07 09:13:25 +08:00
Tao Wen
f771d32291 #70 decode null to nil for map/slice 2017-06-26 10:20:49 +08:00
Tao Wen
8ab46965bd extract out any tests 2017-06-17 21:32:48 +08:00
Tao Wen
b31b1301e2 #59 add ConfigFastest 2017-06-17 10:21:37 +08:00
Tao Wen
5f22e50c89 #53 support escapeHtml 2017-06-15 23:55:04 +08:00
Tao Wen
acddcf5bbf #53 extract out config 2017-06-13 16:58:53 +08:00
Tao Wen
788918b85d #56 nil map or array should be null not [] or {} 2017-06-13 09:14:19 +08:00
Tao Wen
cfffa29c8a gofmt 2017-06-06 23:27:00 +08:00
Tao Wen
fc44cb2d91 #26 do not enforce pointer as optional 2017-05-23 18:46:11 +08:00
Tao Wen
ba410b045b int lazy any 2017-01-22 23:29:48 +08:00
Tao Wen
1d29fa38ef read to interface{} 2017-01-21 16:09:38 +08:00
Tao Wen
a73e48e8bf optimize read nil/true/false 2017-01-18 23:33:40 +08:00
Tao Wen
6f57d41461 add stream 2017-01-07 12:28:16 +08:00
SuperFashi
d63a00f0bf Formated, doced. Also fixed few minor bugs. 2017-01-05 21:23:08 +08:00
Tao Wen
ce5b193569 support null/true/false 2016-12-02 11:22:20 +08:00