Commit Graph

921 Commits

Author SHA1 Message Date
Masaaki Goshima 82cc22a37f
Merge pull request #207 from goccy/feature/fix-decoding-of-back-slash-char
Fix decoding of backslash char at the end of string
2021-05-02 16:41:51 +09:00
Masaaki Goshima f341b31ea5 Fix decoding of backslash char at the end of string 2021-05-02 16:02:14 +09:00
Masaaki Goshima 2f3afbf6ad
Merge pull request #206 from goccy/feature/fix-decode-bytes-null
Fix decoding of null value to []byte by json.Unmarshal
2021-05-02 15:59:53 +09:00
Masaaki Goshima fb6151f556 Fix decoding of null value to []byte by json.Unmarshal 2021-05-02 15:26:36 +09:00
Masaaki Goshima 6a1ae7c1ca
Merge pull request #205 from goccy/feature/fix-nil-interface
Fix decoding of null value for interface type that doesn't implement Unmarshaler
2021-05-02 03:50:00 +09:00
Masaaki Goshima 275aade00d Fix decoding of null value for interface type that does not implement Unmarshaler 2021-05-02 03:36:58 +09:00
Masaaki Goshima 117e9eff37
Merge pull request #198 from goccy/feature/fix-decoding-of-slice
Fix decoding of slice with type implemented UnmarshalJSON
2021-05-01 19:11:37 +09:00
Masaaki Goshima 9e882fb664 Remove unused code 2021-05-01 14:56:49 +09:00
Masaaki Goshima 75b72584a5 Use typedmemmove for copying element of slice 2021-05-01 14:53:48 +09:00
IncSW e6ff77fe8d
remove useless dstCap var 2021-04-30 20:07:44 +03:00
IncSW 2ad2f11326
when cap is enough, reuse slice data for compatibility with encoding/json 2021-04-30 19:09:15 +03:00
Masaaki Goshima 6444a1b057 Fix checkptr error 2021-04-30 23:49:04 +09:00
Masaaki Goshima e647dafb41 Fix decoding of slice with unmarshal json type 2021-04-30 22:55:08 +09:00
Masaaki Goshima 17392ab716 Fix stream decoder 2021-04-30 04:06:23 +09:00
Masaaki Goshima 16a358048e if elem type is slice, clear it 2021-04-30 04:02:06 +09:00
Masaaki Goshima dc2d025d2a Add test case 2021-04-30 04:01:51 +09:00
Masaaki Goshima 4d51b8b764
Merge pull request #193 from goccy/feature/add-fastjson-to-benchmark
Add valyala/fastjson to benchmark
2021-04-28 17:25:09 +09:00
Masaaki Goshima 6cd0ab4ca9 Add valyala/fastjson to benchmark 2021-04-28 16:59:01 +09:00
Masaaki Goshima df4c91ac28 Update CHANGELOG 2021-04-20 22:15:04 +09:00
Masaaki Goshima b1431c0aae
Merge pull request #190 from goccy/feature/improve-indent-compact
Optimize json.Compact and json.Indent
2021-04-20 20:30:26 +09:00
Masaaki Goshima 7ae14cd24c Optimize json.Compact and json.Indent 2021-04-20 20:12:32 +09:00
Masaaki Goshima e66e5606b5
Merge pull request #189 from goccy/feature/fix-compact
Fix Compact/Indent API
2021-04-19 23:21:11 +09:00
Masaaki Goshima e0b5ba8df4 Add test cases 2021-04-19 22:54:10 +09:00
Masaaki Goshima 7dd33b9060 Add benchmark for Compact/Indent 2021-04-19 20:29:41 +09:00
Masaaki Goshima 34396640d5 Fix Indent ( validate the input buffer ) 2021-04-19 19:55:12 +09:00
Masaaki Goshima 7565171124 Fix allocation strategy for Compact 2021-04-19 18:58:09 +09:00
Masaaki Goshima 4e0c525f9c Fix lint error 2021-04-19 18:20:51 +09:00
Masaaki Goshima addda3a90e Fix Compact ( validate the input buffer ) 2021-04-19 18:18:59 +09:00
Masaaki Goshima 9f6084de1c Update CHANGELOG 2021-04-15 20:09:23 +09:00
Masaaki Goshima cd300c9e56
Merge pull request #187 from IncSW/zero-values-on-custom-types 2021-04-15 03:04:02 +09:00
IncSW a0bf49d201
update debug vm 2021-04-14 20:49:10 +03:00
IncSW 53590387e6
fix OpStructFieldOmitEmptyMarshalJSON with custom type marshaller on all VMs 2021-04-12 11:41:31 +03:00
IncSW 42adc0a5ab
extend tests with custom types 2021-04-12 11:41:10 +03:00
IncSW d12ffe2c66
revert vm OpStructFieldOmitEmptyMarshalJSON 2021-04-12 10:26:32 +03:00
IncSW ac14c18dbb
remove zero value checker for complex 2021-04-12 10:23:57 +03:00
IncSW b57146602e
Fix encoding custom types zero values with omitempty when marshaller exists 2021-04-11 21:45:59 +03:00
Masaaki Goshima c74c2078ea
Update README.md 2021-04-11 16:29:11 +09:00
Masaaki Goshima 29283c4c83
Merge pull request #185 from goccy/feature/fix-number
Fix decoder for invalid number value
2021-04-11 15:54:53 +09:00
Masaaki Goshima 50bf5148f3 Fix decoder for invalid number value 2021-04-11 15:18:08 +09:00
Masaaki Goshima deec2b2b0d
Merge pull request #184 from goccy/feature/validate-end-buf
Fix decoding of invalid top level value
2021-04-10 19:23:45 +09:00
Masaaki Goshima a4d8927b44 Fix lint error 2021-04-10 18:51:11 +09:00
Masaaki Goshima 2cb792ca28 Fix decoding of invalid top level value 2021-04-10 18:44:43 +09:00
Masaaki Goshima 6fbf3fc7c0
Merge pull request #183 from goccy/feature/fix-179
Fix encoding of omitempty feature for the slice or interface type
2021-04-10 16:48:28 +09:00
Masaaki Goshima 69e40becbf Fix encoding of omitempty feature for the slice or interface type 2021-04-10 16:25:45 +09:00
Masaaki Goshima 8bc5727ba4
Merge pull request #177 from WillAbides/valid
Make Valid more consistent with "encoding/json"
2021-04-10 15:47:52 +09:00
Masaaki Goshima ca141f38b6
Merge pull request #181 from goccy/feature/fix-180
Fix unnecessary indent for empty slice/array
2021-04-10 15:36:18 +09:00
Masaaki Goshima ae56d8371d Fix unnecessary indent 2021-04-10 15:25:02 +09:00
Will Roden 4cae8f7bc7 update Valid to return false when there is additional data after the validated value 2021-04-06 16:15:07 -05:00
Masaaki Goshima a39bc30ed9 Update CHANGELOG 2021-04-03 01:27:08 +09:00
Masaaki Goshima e66fb89902
Merge pull request #173 from goccy/feature/improve-decoder-interface-performance
Improve decoder performance for empty interface type
2021-04-02 20:46:39 +09:00