Commit Graph

55 Commits

Author SHA1 Message Date
Masaaki Goshima 50bf5148f3 Fix decoder for invalid number value 2021-04-11 15:18:08 +09:00
Masaaki Goshima 2cb792ca28 Fix decoding of invalid top level value 2021-04-10 18:44:43 +09:00
Masaaki Goshima e38c3606b3 Fix decoding of slice pointer type 2021-03-29 02:28:04 +09:00
Masaaki Goshima a06b2c5f60 Support coerce invalid utf8 char 2021-03-25 00:24:53 +09:00
Masaaki Goshima 3a0fba4bdb Fix invalid string option 2021-03-24 19:09:33 +09:00
Masaaki Goshima e0812246ef Fix test code for debug 2021-03-18 18:29:18 +09:00
Masaaki Goshima 4cdbd4e962 Remove unnecessary code 2021-03-12 00:43:48 +09:00
Masaaki Goshima 4167aefe08 Fix any bugs of encoder
- fix some issues ( #104 #118 #144 #147 )
- fix recursive call operation
- use json.Number of encoding/json
- fix encoding of MarshalJSON and MarshalText
- fix pointer operation
- remove 'anonymous' and 'only' operation
- add test cases for array/slice/map/marshaler
2021-03-11 19:29:35 +09:00
Masaaki Goshima 23c5766bd2 Add test case 2021-02-18 19:11:44 +09:00
Masaaki Goshima f8fd59516b Fix decoding of deep recursive structure 2021-02-18 19:05:06 +09:00
Masaaki Goshima 35eee537d4 Add test case 2021-02-18 17:59:29 +09:00
Masaaki Goshima 6eb23deb6f Fix decoding of embedded unexported pointer field 2021-02-18 17:46:28 +09:00
Masaaki Goshima cf6cf56e3d Fix invalid test case 2021-02-18 16:49:51 +09:00
Masaaki Goshima 0288026fde Fix decoding of invalid value 2021-02-18 16:42:38 +09:00
Masaaki Goshima 91c53cd3f7 Fix decoding of prefilled value 2021-02-18 12:13:49 +09:00
Masaaki Goshima b2a7d22fb4 Fix not being able to return UnmarshalTypeError when it should be returned 2021-02-18 11:32:08 +09:00
Masaaki Goshima 5351464001 Fix decoding of null value 2021-02-17 01:51:42 +09:00
Masaaki Goshima e09027425c Use pre allocated pointer if exists it 2021-02-17 00:03:07 +09:00
Masaaki Goshima 644ac4a692 Fix decoding of type of null string 2021-02-16 11:46:00 +09:00
Nao Yonashiro 10de43128b test: add test case of decode escaped string to empty interface 2021-02-12 18:12:40 +09:00
Masaaki Goshima 6befcb123e Fix decoding of interface type 2021-02-09 22:13:58 +09:00
Masaaki Goshima 6e154ee727 Fix decoding of escape char at UnmarshalJSON 2021-01-30 02:03:31 +09:00
Masaaki Goshima 06e2230d8d Fix decoder by using checkptr flag 2020-12-24 21:52:40 +09:00
Masaaki Goshima 22ef64f4a5 Add test cases 2020-12-24 20:08:27 +09:00
Masaaki Goshima 8628848924 Fix decoding of []byte type 2020-12-24 19:36:49 +09:00
Masaaki Goshima 048ba8296d Add all unmarshal test cases 2020-12-24 18:58:34 +09:00
Masaaki Goshima 66b1c768fe Add error handling for unmarshal text 2020-12-24 18:45:26 +09:00
Masaaki Goshima 23290f4ce4 Fix error case 2020-12-24 18:30:11 +09:00
Masaaki Goshima 080bd5e4eb Fix UnmarshalTypeError 2020-12-24 17:47:53 +09:00
Masaaki Goshima ba4d7d2885 Fix []byte with unmarshaler 2020-12-24 14:26:18 +09:00
Masaaki Goshima 9f125be311 Add test case with comment 2020-12-23 14:39:15 +09:00
Masaaki Goshima f8eb061538 Fix decoder 2020-11-22 02:47:18 +09:00
Masaaki Goshima 3e1a1ac1ad Fix recursive anonymous field 2020-11-16 21:28:33 +09:00
Masaaki Goshima 9351afdb88 Fix pointer fields 2020-09-17 21:50:27 +09:00
Masaaki Goshima a9b9597c2e Fix map key type 2020-08-25 11:17:38 +09:00
Masaaki Goshima e112aa753e Support DisallowUnknownFields 2020-08-11 19:05:20 +09:00
Masaaki Goshima f9ffbb1940 Support json.Number 2020-08-11 18:04:32 +09:00
Masaaki Goshima 8e854178d0 Fix nested map 2020-08-08 13:43:24 +09:00
Masaaki Goshima 69573d1b74 Fix null value for struct field 2020-08-08 13:20:42 +09:00
Masaaki Goshima 460499ee65 Fix null in string type 2020-08-08 12:21:25 +09:00
Masaaki Goshima 20b67ad48d Support Decoder.Token 2020-07-30 22:41:53 +09:00
Masaaki Goshima b4b79620aa Add stream decoder 2020-05-24 21:31:10 +09:00
Masaaki Goshima d8d711ecf9 Add error type compatible with encoding/json 2020-05-09 01:07:33 +09:00
Masaaki Goshima bb169a5cf6 Support UnmarshalText for decoding 2020-05-08 20:25:49 +09:00
Masaaki Goshima c23e5f43a7 Support UnmarshalJSON 2020-05-08 20:22:57 +09:00
Masaaki Goshima 9fe0063679 Support interface{} type for decoding 2020-05-08 15:13:30 +09:00
Masaaki Goshima f36e24c8ae Add decoder for map type 2020-04-25 22:48:16 +09:00
Masaaki Goshima 71d6f845e5 Add decoder for Array or Slice type 2020-04-25 19:55:05 +09:00
Masaaki Goshima 43e676350c Fix test case 2020-04-24 20:55:21 +09:00
Masaaki Goshima cfde002d29 Add decoder of float 2020-04-24 16:46:12 +09:00