Aleksandr Petrukhin
a0e09156bb
[decoder] implemented encoding.Marshaler for map keys
2019-04-03 16:25:01 +00:00
Vasily Romanov
6243d8e04c
Merge pull request #209 from shmel1k/bugfix/issue_207_fix_reference_to_pointer
...
[decoder] remove unnecessary reference to a pointer
2019-02-21 10:54:03 +03:00
Aleksandr Petrukhin
b27fccced4
[decoder] remove unnecessary reference to a pointer
2019-02-20 21:52:23 +00:00
Phil Pearl
0e998db2a9
Stdlib json handles embedded structs with json tags differently.
...
See https://play.golang.org/p/KXZbjG0JBle for an example
2019-01-10 18:43:09 +00:00
Vasily Romanov
9825584555
Merge pull request #174 from IncSW/master
...
fix marshaling for uint8 custom types
2018-05-31 12:57:41 +03:00
Aleksandr Petrukhin
c63cf99c78
[Generator] implement DisallowUnknownFields from go 1.10
2018-05-29 16:19:21 +00:00
IncSW
09f3bc3a8f
fix marshaling for uint8 custom types
2018-04-27 01:46:49 +03:00
Vasily Romanov
517203d186
Merge pull request #158 from regeda/invalid_indirect_of_pointer_on_array
...
fix invalid indirect of a pointer on a array
2018-03-20 16:17:58 +03:00
Vasily Romanov
f594efddfa
Merge pull request #156 from levigross/master
...
Add float string functions when requested
2018-03-11 19:19:19 +03:00
Nicolas S. Dade
a06183da62
support maps with key types which have custom marshler/unmarshalers
...
by assuming the caller knows what they are doing and that the custom
marshler will generate JSON appropriate for a key.
The standard library's encoding/json supports these.
2018-03-06 13:50:06 -08:00
Anthony Regeda
95baeb8ee7
invalid_indirect_of_pointer_on_array fix invalid indirect of a pointer on a array
2017-12-19 13:06:15 +03:00
Levi Gross
b5dedd1b9e
We now include and pass tests
...
Signed-off-by: Levi Gross <levi@levigross.com >
2017-11-26 18:55:54 -05:00
Levi Gross
4f31de8934
Add float string functions when requested
...
Signed-off-by: Levi Gross <levi@levigross.com >
2017-11-26 18:36:47 -05:00
Vasily Romanov
b49b991103
Merge pull request #147 from ChuntaoLu/lu.int
...
Support maps with key types that are integers
2017-10-22 20:32:03 +03:00
Chuntao Lu
06d7c00bd4
Support integer type as map key
2017-10-19 19:41:26 -07:00
lispad
67fbe08504
Feature: allow to unmarshal json.Number
...
Both go native encoding/json json.Unmarshal and ffjson's UnmarshalJSON methods could unmarshal both json-encoded strings:
`{"number": 10}`
`{"number": "20"}`
to struct {
Number json.Number `json:"number"`
}
But easyjson got error on unmarshaling second string.
2017-10-18 00:11:05 +03:00
Chuntao Lu
0172647770
Handle errors when generating encoder/decoder for nested structures
2017-10-16 18:33:34 -07:00
Will Storey
1845bb70a0
Explicitly ignore error from UnmarshalJSON()
...
This function can return an error which we currently ignore. Be explicit
about this. Primarily this is so linters will not complain.
2017-06-10 10:55:29 -07:00
Vladimir Varankin
d1142d3549
avoid data convertion during encodig
2017-03-07 12:52:49 +03:00
Vladimir Varankin
1a411a8244
proper encoding.TextMarshaler interfaces handling
...
Currently easyjson doesn't handle [encoding.TextMarshaler][1] interfaces.
This leads to a situation where types like [net.IP][2] are handled
as Base64Bytes.
[1]: https://godoc.org/encoding#TextMarshaler
[2]: https://godoc.org/net#IP
2017-03-06 21:23:53 +03:00
Vasily Romanov
f9711e8c5b
Merge pull request #86 from kenshaw/update-documentation
...
Cleaning up and Updating Documentation
2017-02-16 16:46:46 +03:00
Kenneth Shaw
b9110dcf3b
Cleaning up and Updating Documentation
...
Formatting changes to README.md
Standardize "marshal" and "unmarshal" spelling
2017-02-14 15:28:23 +07:00
Erik Dubbelboer
8b5cbcbffd
Reuse slices when possible
...
When a slice is already allocated we can just reuse it by resetting it
instead of creating a new slice.
2017-01-31 17:02:53 +08:00
dd
5e011ce0b0
Merge branch 'master' of github.com:mailru/easyjson
...
# Conflicts:
# tests/basic_test.go
# tests/data.go
2016-11-07 11:32:29 +03:00
Connor Peet
40a57dac8a
Assert that no extraneous data remains after top-level tokens
2016-10-30 21:41:08 -07:00