Ben Brooks
d296277d5c
Adds MaxDepth config option
...
Defaults to 10,000 to match the existing maxDepth constant everywhetre,
except when using `ConfigCompatibleWithStandardLibrary` - which retains
the limitless depth (and causes a stack overflow).
Added tests for the new config, and also up to jsoniter's stack overflow limit.
2019-11-11 16:13:59 +00:00
Tao Wen
dc11f49689
Merge pull request #416 from jarredhawkins/issue-415
...
Ignore unnamed literals in structs
2019-10-30 08:35:33 +08:00
Jarred Hawkins
83f7b825b3
Unnamed struct literals
2019-10-28 23:05:10 -07:00
Tao Wen
03217c3e97
Merge pull request #410 from liggitt/stack
...
Limit nesting depth
2019-10-12 21:07:04 +08:00
Tao Wen
908eaed151
Merge pull request #408 from onelrdm/master
...
skip - tag before spliting parts
2019-10-12 21:05:04 +08:00
Jordan Liggitt
eec24895fe
Limit nesting depth
2019-10-08 11:17:01 -04:00
onelrdm
1ba732a07d
skip - tag before spliting parts
2019-09-28 17:17:44 +08:00
Tao Wen
819acad769
Merge pull request #398 from teou/master
...
use json.Marshaler then trim the last '\n' in reflect_marshaler
2019-09-23 14:02:24 +08:00
Tao Wen
695ec2b83b
Merge pull request #406 from bbrks/fix_nil_map_encoding
...
Fixes #405 - Encode nil map into null
2019-09-23 13:59:22 +08:00
Ben Brooks
028e2ef2bd
Fixes #405 - Encode nil map into null
2019-09-19 13:11:30 +01:00
liyibo [李一博]
976454858b
use json.Marshaler then trim the last '\n' in reflect_marshaler
...
N/A
2019-08-14 10:10:02 +08:00
Tao Wen
27518f6661
Merge pull request #373 from ernado/append-skip
...
fix #372 : add AppendSkip iterator method
2019-06-22 00:12:01 +08:00
Tao Wen
94869abf43
Merge pull request #368 from alextomaili/fix-memory-allocation-overhead
...
allocate string for error description only if it really required
2019-06-22 00:11:00 +08:00
Aleksandr Razumov
459f0e30ae
fix #37 : add SkipAndAppendBytes iterator method
2019-06-10 12:40:05 +03:00
Tim Hockin
0039f4ac3d
Merge pull request #371 from nikhita/byte-base64-encode
...
Don't marshal empty byte or uint8 slice as null
2019-06-03 19:06:22 +02:00
Nikhita Raghunath
fb5614a4ca
Don't marshal empty byte or uint8 slice as null
...
[]byte or []uint8 are encoded as base-64 encoded string. Per this, non-nil
empty slice should not get marshalled as null, rather as "".
This restores compatibility with the standard library.
2019-06-03 16:19:17 +05:30
alextomaili
f71b9090aa
allocate string for error description only if it really required
2019-05-27 03:02:21 +03:00
Tao Wen
08047c174c
fix #365 , return error for +inf -inf and NaN
2019-05-23 13:57:43 +08:00
Tao Wen
68347ec4d6
Merge pull request #366 from stephen-obashitech/master
...
Fix typo in UnmarshalFromString documentation
2019-05-22 13:56:51 +08:00
Stephen Brown
0fd91468bb
Fix typo in UnmarshalFromString documentation
2019-05-21 12:48:31 +01:00
Tao Wen
1bc9828b4f
Merge pull request #361 from lggomez/master
...
Add go module definition
2019-05-19 23:23:02 +08:00
Luis GG
24c3d57281
Add go module definition
2019-04-25 17:40:48 -03:00
Tao Wen
0ff49de124
update README
2019-03-06 22:29:09 +08:00
Tao Wen
5bc9320502
Merge pull request #316 from proemergotech/master
...
fix #308 do NOT skip embedded structs without tag when OnlyTaggedFiel…
2019-02-08 15:56:42 +08:00
Tao Wen
f64ce68b6e
Merge pull request #338 from dvrkps/master
...
Clean go vet error and ineffassign warnings.
2019-01-14 23:53:30 +08:00
Tao Wen
2d42ff74dd
Merge pull request #337 from denverdino/fix-encode-with-MarshalJSON
...
Fix the incompatible encoding #336
2019-01-14 23:52:16 +08:00
Davor Kapsa
3a023a5fbc
clean readPositiveFloat64
2019-01-10 18:00:15 +01:00
Davor Kapsa
16aef10b2b
clean readPositiveFloat32
2019-01-10 17:55:28 +01:00
Davor Kapsa
ae4c002f78
rename ExampleMyKey
2019-01-10 17:51:25 +01:00
Li Yi
e4aa2ec063
Fix the incompatible encoding
2019-01-03 18:19:22 +08:00
Tao Wen
d05f387f50
fix #317 , try parse as BigFloat if overflow
2018-11-12 14:45:56 +08:00
Adam Kiss
a9403d25cd
fix #308 do NOT skip embedded structs without tag when OnlyTaggedField is set to true
2018-10-29 12:00:51 +01:00
Tao Wen
05d041de10
fix #313 support json marshaller type as map key
2018-10-24 23:28:41 +08:00
Tao Wen
5916df66b3
fix #311 handle nil any
2018-10-24 21:05:37 +08:00
Tao Wen
2433035e51
Merge pull request #304 from Quasilyte/quasilyte/emptyFallthrough
...
use multi-value case clause instead of fallthrough
2018-09-14 09:48:43 +08:00
Tao Wen
6dfc0bf2dd
Merge pull request #305 from Quasilyte/quasilyte/assignOp
...
simplify `x = x <op> y` to `x <op>= y`
2018-09-14 09:48:25 +08:00
Tao Wen
b9be8dd373
Merge pull request #306 from Quasilyte/quasilyte/underef
...
remove redundant dereferencing expressions
2018-09-14 09:47:54 +08:00
Tao Wen
b8d78b6aaf
Merge pull request #307 from Quasilyte/quasilyte/commentedOutCode
...
any_tests: remove commented-out code
2018-09-14 09:47:25 +08:00
Iskander Sharipov
7109b5e7dd
any_tests: remove commented-out code
...
Found using https://go-critic.github.io/overview#commentedOutCode-ref
2018-09-13 21:57:53 +03:00
Iskander Sharipov
4cc76529e8
remove redundant dereferencing expressions
...
Found using https://go-critic.github.io/overview#underef-ref
2018-09-13 21:51:59 +03:00
Iskander Sharipov
c5ddac9dc3
simplify x = x <op> y
to x <op>= y
...
Found using https://go-critic.github.io/overview#assignOp-ref
2018-09-13 21:48:13 +03:00
Iskander Sharipov
f76d712086
use multi-value case clause instead of fallthrough
...
Found using https://go-critic.github.io/overview#emptyFallthrough-ref
2018-09-13 21:43:37 +03:00
Tao Wen
1624edc445
fix #295 decoder more was not compatible with standard library
2018-08-06 14:07:27 +08:00
Tao Wen
5d789e5e02
fix #291 omit empty was not handled properly for json raw message
2018-08-06 13:58:33 +08:00
Tao Wen
0260c89b54
fix #286 calcHash should use byte not rune to calc hash
2018-08-06 13:23:06 +08:00
Tao Wen
10a568c511
fix #293 copy extensions
2018-07-22 11:51:51 +08:00
Tao Wen
ab8a2e0c74
fix #276 allow rename when set naming strategy
2018-07-01 15:16:28 +08:00
Tao Wen
2fbdfbb595
merge
2018-07-01 13:06:34 +08:00
Tao Wen
720ab8dc7f
add tests for #283
2018-07-01 13:05:25 +08:00
Tim Hockin
f2b4162afb
Merge pull request #285 from nikhita/fix-case-sensitivity
...
Fix case sensitivity
2018-06-12 13:28:35 -07:00