Commit Graph

204 Commits

Author SHA1 Message Date
Muhammad Noor Misyuari df897aec9d
fix: decode struct with pointer must be nil (#473) 2023-10-19 16:13:09 +09:00
Masaaki Goshima 3d5ab28ab3
add license for encoding int processing 2023-10-13 12:44:19 +09:00
Masaaki Goshima 9b91208837
Add license for string processing (#476)
* add license for string processing

* update golangci-lint
2023-10-13 12:33:43 +09:00
Nao Yonashiro 5e6fe10846
fix: fixed a problem with NextField being wrong when combining structure embedding and omitempty (#442)
fix #441
2023-03-20 04:54:48 +09:00
Nao Yonashiro 4d199a4b2c
feat: added the option to output opcodes as dot (#440) 2023-03-20 04:53:43 +09:00
Nao Yonashiro 6f969b6d5f
fix: fixed an issue that could not set the correct NextField for fields in the embedded structure (#438)
fix #391
2023-03-13 20:54:51 +09:00
Anders Brander 7be58ac89d
Fix mapDecoder.DecodeStream() to accept empty objects containing whitespace (#425) 2023-03-13 20:01:01 +09:00
Nao Yonashiro f32a307caf
fix: fixed a problem that MarshalIndent does not work when UnorderedMap is specified (#435) 2023-03-13 19:58:11 +09:00
Nao Yonashiro 2ef15e72f8
fix: fixed to not optimize when lower can't handle byte-by-byte. (#432) 2023-03-13 19:57:24 +09:00
Masaaki Goshima b68305f5d1
Merge pull request #431 from orisano/fix/#426
fix: fixed handling of anonymous fields other than struct
2023-03-13 19:43:45 +09:00
Nao Yonashiro 06ab2b4c88
fix: fixed handling of anonymous fields other than struct
fix #426
2023-02-24 09:20:14 +09:00
Nao Yonashiro cdbc29239b
fix: added buffer size check when decoding key
fix #429
2023-02-22 20:54:26 +09:00
Masaaki Goshima 1480e0046f
Fix checkptr error for array decoder 2022-12-02 01:51:29 +09:00
Masaaki Goshima 1de494fd9a
Fix json path 2022-11-29 21:44:55 +09:00
Masaaki Goshima 781a0b3e85
Support JSON Path 2022-11-29 03:55:56 +09:00
brongineers 705f51716b fix custom marshal for map key 2022-11-13 21:05:50 +03:00
Masaaki Goshima 4cf345ebdf
Merge pull request #383 from KimHyeonwoo/master
Fix unexpected behavior when buffer ends with backslash
2022-08-03 21:18:37 +09:00
KimHyeonwoo f83142d838 replace statForRetry with stat (review reflected) 2022-08-02 12:07:48 +09:00
Nao Yonashiro 95a32fc038 fix: forgot to update p after read
fix #386
2022-07-29 13:58:00 +09:00
KimHyeonwoo 3e25104a7c fix cursor issue for `skipArray`, `skipValue` 2022-07-18 21:35:32 +09:00
KimHyeonwoo 70d6286ba8 fix cursor issue 2022-07-18 19:41:08 +09:00
Trim21 9a9f9adb05
fix encoder and decoder cache slice edge case 2022-07-10 09:15:33 +08:00
Nao Yonashiro 79d8df005a
Merge branch 'master' into fix/#374 2022-07-07 15:12:08 +09:00
Masaaki Goshima 88aa13e300
Fix comment for #379 2022-07-07 14:52:28 +09:00
Masaaki Goshima 8459403e25
Merge pull request #379 from orisano/fix/#370
Fix slice/array type encoding with types implementing MarshalJSON
2022-07-07 14:46:02 +09:00
Nao Yonashiro 8f5055b06a fix: In decodeUnicode, the case that the expected buffer's state is not satisfied after reading.
fix #374
2022-07-07 00:42:31 +09:00
Nao Yonashiro 565e07e45c fix: change isPtr to true on listElemCode
fix #370
2022-07-06 16:47:00 +09:00
Nao Yonashiro f0e6a549f2 fix: support for embedding alias of primitive types
fix #372
2022-07-04 14:46:17 +09:00
Nao Yonashiro 884b8dbf9a refactor: to check for IsDirectedNil only if ifacePtr == nil 2022-07-03 22:39:31 +09:00
Nao Yonashiro c8d6da88dd fix: confusing nil in direct interface with typed nil
fix #376
2022-07-03 06:05:26 +09:00
Masaaki Goshima 6726210c9c
Merge pull request #375 from orisano/fix/#339
fix: wrong the detection method of nilable
2022-06-30 02:18:57 +09:00
Matthew Topol 865b215890 fix stream tokenizing respecting UseNumber 2022-05-05 12:12:27 -04:00
Nao Yonashiro 2ea7ab6e24 fix: wrong the detection method of nilable
fix #339
2022-05-04 23:40:12 +09:00
Nao Yonashiro c07df9add6 feat: improve performance on linkRecursiveCode
fix #331
2022-05-03 04:03:05 +09:00
Nao Yonashiro 42805aa953 fix: add escape sequence validation
fix #335
2022-04-29 17:16:25 +09:00
Nao Yonashiro 66f8b2629d chore: use reflect.Ptr 2022-04-28 20:30:06 +09:00
Nao Yonashiro 944f8be027 chore: remove IsExported 2022-04-28 20:24:46 +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 6db1acfcb6 fix: to care about the case of OpInterfacePtr
fix #359
2022-04-22 00:38:20 +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
Masaaki Goshima 3a4ad31980
Merge pull request #356 from orisano/feat/add-debug-with
feat: add DebugWith option
2022-03-26 00:57:17 +09:00
Masaaki Goshima 54362b465e
Merge pull request #355 from orisano/fix/add-filtering-on-slow-path
fix: add filtering on slow path
2022-03-26 00:54:23 +09:00
Nao Yonashiro 321fe31260 feat: add DebugWith option 2022-03-25 05:13:32 +09:00
Nao Yonashiro e43fb0f990 fix: add filtering on slow path 2022-03-25 03:03:25 +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
Masaaki Goshima 47a26db8a2
Merge pull request #351 from orisano/fix/#350
fix: to safe when got unexpected typeptr
2022-03-19 21:27:34 +09:00
Nao Yonashiro 48f6412cd1 fix: to safe when got unexpected typeptr 2022-03-19 09:33:16 +09:00