Masaaki Goshima
c75b9e57e2
Fix encoding of nested map
2021-03-15 13:29:08 +09:00
Masaaki Goshima
bb3086c375
Remove root property from encodeCompileContext and opcode
2021-03-12 00:56:30 +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
f7b1319735
Integrate int/int8/int16/int32/int64 and uint/uint8/uint16/uint32/uint64 operation to reduce memory usage at compile
2021-02-19 15:12:30 +09:00
Masaaki Goshima
7d83cfcea1
Fix error by linter
2021-02-09 09:25:33 +09:00
Masaaki Goshima
d2de9a1eb5
Refactor
2021-02-09 09:23:15 +09:00
Masaaki Goshima
0d57bf1014
Fix encoding of anonymous struct
2021-02-09 09:20:48 +09:00
Masaaki Goshima
3304ee45bf
Optimize getting of cached decoder
2021-02-04 18:00:08 +09:00
Masaaki Goshima
5a0faf65e4
Merge pull request #111 from goccy/feature/fix-lint
...
Fix error by linter
2021-02-01 22:48:56 +09:00
Masaaki Goshima
2a0d4603ea
Fix error output by golangci-lint
2021-02-01 22:32:45 +09:00
Masaaki Goshima
b431a095d6
Fix error by race detector
2021-02-01 20:02:43 +09:00
Masaaki Goshima
61e533dca2
Refactor encoder
2021-01-31 22:45:59 +09:00
Masaaki Goshima
ddfae9189e
Fix recursive call
2021-01-15 16:28:20 +09:00
Masaaki Goshima
67a7ac450b
Add test cases for int type
2021-01-14 00:02:58 +09:00
Masaaki Goshima
eb6fb3b15d
Pass all tests
2021-01-09 13:55:34 +09:00
Masaaki Goshima
2356c0ceab
Fix runtime error
2020-12-30 01:29:29 +09:00
Masaaki Goshima
5741c733a6
Refactor indent code
2020-12-25 17:03:56 +09:00
Masaaki Goshima
f5daa592fa
Improve encoding performance
2020-12-25 03:53:48 +09:00
Masaaki Goshima
6c3382dc4e
Support multiple pointer
2020-12-23 13:13:34 +09:00
Masaaki Goshima
24aa07e47f
Merge branch 'master' of github.com:goccy/go-json into feature/fix-decoder
2020-12-23 01:37:54 +09:00
Masaaki Goshima
01b439e41e
Refactor buffering of encoder for improvement performance
2020-12-20 04:02:03 +09:00
Masaaki Goshima
d88eb0986e
Fix UnmarshalTypeError for int decoder
2020-12-15 12:29:19 +09:00
Masaaki Goshima
85577616f8
Support int and uint types as map key type
2020-12-12 18:09:46 +09:00
Masaaki Goshima
59f5713178
Fix double pointer
2020-12-07 10:49:00 +09:00
Masaaki Goshima
5a8383f0d2
Fix ptrIndex
2020-12-06 19:59:39 +09:00
Masaaki Goshima
3e1a1ac1ad
Fix recursive anonymous field
2020-11-16 21:28:33 +09:00
Masaaki Goshima
4994bc5d04
Fix handling of comma as delimiter
...
Conflicts:
encode_vm.go
2020-11-16 19:16:45 +09:00
Masaaki Goshima
9351afdb88
Fix pointer fields
2020-09-17 21:50:27 +09:00
Masaaki Goshima
d76012422a
Fix stream encoding
2020-09-17 01:26:39 +09:00
Masaaki Goshima
aaea586778
Enable switch map processing at runtime
2020-09-16 18:15:47 +09:00
Masaaki Goshima
898d58b8b8
Supported sorted map
2020-09-16 14:51:37 +09:00
Masaaki Goshima
4f4060f808
Fix index number
2020-09-01 23:23:07 +09:00
Masaaki Goshima
3aa921e884
Fix encoding engine
2020-09-01 22:26:26 +09:00
Masaaki Goshima
72bc598dd4
Remove state variables from opcode
2020-08-31 21:59:22 +09:00
Masaaki Goshima
a6276c4d8e
Optimize opcode.idx and seenPtr
2020-08-31 03:14:37 +09:00
Masaaki Goshima
a9e2386e42
Add opcodeIndex to opcode
2020-08-30 17:32:26 +09:00
Masaaki Goshima
e508ad41ba
Refactor indent parameter
2020-08-29 15:35:03 +09:00
Masaaki Goshima
7dcadbd6ce
Refactor with encodeCompileContext
2020-08-29 15:11:31 +09:00
Masaaki Goshima
9ba13f68ff
Add special operation for opStructFieldHead and opStructField
2020-08-24 01:50:18 +09:00
Masaaki Goshima
cdf2498285
Fix processing of anonymous field
2020-08-22 18:15:39 +09:00
Masaaki Goshima
7ada1b2467
Fix conflicted anonymous fields
2020-08-22 15:40:18 +09:00
Masaaki Goshima
a718a9a1ef
Fix anonymous fields
2020-08-22 12:58:34 +09:00
Masaaki Goshima
f434070076
Fix encoding of primitive pointer with string tag
2020-08-20 22:00:20 +09:00
Masaaki Goshima
d3d5df5bd4
Fix []byte type of implemeting Marshaler
2020-08-20 17:58:28 +09:00
Masaaki Goshima
8d029cddbe
Fix map key by UnmarshalText
2020-08-20 17:47:38 +09:00
Masaaki Goshima
74276c6af3
Fix decoder for string tag
2020-08-20 12:38:50 +09:00
Masaaki Goshima
22f3bba9a8
Support string tag operation
2020-08-19 19:56:02 +09:00
Masaaki Goshima
13a15040b3
Support encoding of []byte type
2020-08-19 10:34:11 +09:00
Masaaki Goshima
1d2beb8473
Add test cases for MarshalJSON and MarshalText
2020-08-19 00:32:45 +09:00