Commit Graph

55 Commits

Author SHA1 Message Date
Nao Yonashiro f0e6a549f2 fix: support for embedding alias of primitive types
fix #372
2022-07-04 14:46:17 +09:00
Matthew Topol 865b215890 fix stream tokenizing respecting UseNumber 2022-05-05 12:12:27 -04:00
Nao Yonashiro 42805aa953 fix: add escape sequence validation
fix #335
2022-04-29 17:16:25 +09:00
Nao Yonashiro af33c47846 fix: determining embedded structs was wrong
fix #362
2022-04-26 14:16:28 +09:00
Nao Yonashiro 6911114fb4 fix: to care surrogate-pair on stringDecoder
fix #364
2022-04-26 01:40:44 +09:00
Nao Yonashiro 4311bab3dc style: go fmt 2022-04-11 20:43:58 +09:00
Nao Yonashiro d9df77a119 fix: add a fallback uint8 sliceDecoder to bytesDecoder
fix #360
2022-04-07 18:10:49 +09:00
Nao Yonashiro 4235ca04c0 fix: an incompatible behavior on map key decoder
fix #342
The map key decoder has an incompatible behavior when the type kind is string and the type has UnmarshalJSON.
2022-03-24 09:35:14 +09:00
Nao Yonashiro 8c27bb4f29
Merge branch 'master' into fix/#348 2022-03-19 21:29:50 +09:00
Nao Yonashiro 6832682204 fix: mismatched between len(s.buf) and s.bufSize
close #348
2022-03-18 23:31:33 +09:00
Nao Yonashiro 6f811065b6 feat: improves escapeString's performance 2022-03-13 08:42:55 +09:00
Nao Yonashiro f714c3961d fix: to care ints minimum values
close #343
2022-03-12 23:43:03 +09:00
Masaaki Goshima f352b8732a
Merge pull request #334 from orisano/feat-improve-performance-escaped
feat: improve performance when a payload contains escape sequence
2022-03-04 20:53:41 +09:00
Masaaki Goshima 58b524e43e
Merge pull request #338 from orisano/fix/#337
fix: avoid reading the next character in buffer to nul consideration
2022-03-04 20:51:40 +09:00
Nao Yonashiro accf52d695 fix: incorrect handling on skipValue
close #340
2022-03-04 20:01:05 +09:00
Nao Yonashiro 81519c48d8 fix: avoid reading the next character in buffer to nul consideration
fix #337
2022-02-22 19:22:48 +09:00
Nao Yonashiro 4bd7d2399f feat: improve performance when a payload contains escape sequence 2022-02-12 17:25:52 +09:00
Nao Yonashiro c05e1e23ee fix: panic when decoding time.Time with context
close #327
2022-01-26 01:02:27 +09:00
Masaaki Goshima 50b494bc5f
Fix logic of removing struct field for decoder 2022-01-14 20:18:18 +09:00
Masaaki Goshima b5a50f75eb
Add invalid decoder to delay type error judgment at decode 2022-01-13 18:09:48 +09:00
Masaaki Goshima d494b03b74 Fix decoding of map type that contains indirect element type 2021-08-31 12:21:08 +09:00
Masaaki Goshima 284c108638 Fix mapassign 2021-08-30 11:40:10 +09:00
Nao Yonashiro e8637832dd style: gofmt 2021-08-25 11:25:00 +09:00
Nao Yonashiro ae9148555a
Merge branch 'master' into fix-issue-278 2021-08-25 11:23:59 +09:00
Nao Yonashiro ac41fbec94 fix: fixed buffer length bug on string decoder
close #278
2021-08-25 07:23:34 +09:00
Nao Yonashiro e1e6c41c66 fix: fixed invalid utf8 on stream decoder 2021-08-25 06:15:15 +09:00
Masaaki Goshima 68022098ad
Merge pull request #277 from goccy/feature/improve-error-message
Improve error message
2021-08-13 17:29:27 +09:00
Masaaki Goshima 08c2e1abef Improve error message 2021-08-13 17:05:07 +09:00
Masaaki Goshima bf35de8f91 Fix assign nil slice value 2021-08-13 15:49:53 +09:00
Masaaki Goshima 75a6ad40b9 Fix decoding of binary type with escaped char 2021-08-12 13:52:00 +09:00
peterlimg 91e691adc5
Fix decodeEscapeString err
`p` was not updated after the `stream.buf` is reallocated
2021-07-27 21:53:59 +10:00
Preetham Narayanareddy 2aeb1769a2 Fix decoding of []byte type 2021-06-24 14:42:26 -07:00
Kiraub e94f0cd362
Merge branch 'goccy:master' into master 2021-06-23 17:44:36 +02:00
ebauer 5f0b34250c funcDecoder: handle cases of value being true or false 2021-06-23 15:51:42 +02:00
ebauer a7d041a3d4 gofmt -s 2021-06-23 15:22:40 +02:00
ebauer 585ce46b31 add func decoder 2021-06-23 14:22:24 +02:00
Masaaki Goshima 80c460c74b Fix error by linter 2021-06-23 17:42:30 +09:00
Masaaki Goshima ff12fbbe9b Use mapassign_faststr to decode map whose key type is string 2021-06-23 17:23:09 +09:00
IncSW 9a2f108208
fix array stream decoder 2021-06-15 19:05:12 +03:00
IncSW 1037421a83
fix error when unmarshal empty array 2021-06-15 18:19:39 +03:00
Masaaki Goshima cd7fb7392f Support context for MarshalJSON and UnmarshalJSON 2021-06-12 17:06:26 +09:00
Masaaki Goshima 5c39787fbd Enable FirstWin option for stream decoder 2021-06-06 11:24:56 +09:00
Masaaki Goshima 34b7053412 Fix decoder option flag 2021-06-06 11:11:04 +09:00
Masaaki Goshima a69176cd30 Fix decoder 2021-06-06 11:01:55 +09:00
Masaaki Goshima 3c0e1b5e8c Fix stream buffer length 2021-06-06 10:52:55 +09:00
Masaaki Goshima 5e281e340f Fix decoder 2021-06-05 16:00:17 +09:00
Masaaki Goshima cbda08a525 Add DecodeFieldPriorityFirstWin option 2021-06-05 13:00:26 +09:00
Masaaki Goshima b074c98070 Use RuntimeContext 2021-06-05 01:08:27 +09:00
Masaaki Goshima f0b4077914 Add DecodeOption 2021-06-05 00:27:02 +09:00
Masaaki Goshima e7b7118f4e Fix skipWhiteSpace for stream decoder 2021-06-04 14:59:43 +09:00