- Omit the support for Python 3.6.
- FIX: ecoding None as list should cause TypeMismatch.
- Fix:
typedjson.decode
should acceptint
asfloat
.
- Fix: Decoding
None
should fail as tuple.
- Fix: Decoding
Tuple[T, ...]
should accepttuple()
.
- Support
typing.NewType
. - Fix:
typedjson.dump
should not check the existence of an attribute named__dict__
.
- Add py.typed to enable type-checking for typedjson users.
- Add dataclasses as Python restricted dependency.
- Remove a needless function call for
print
.
- Use
__init__.__annotation__
to decode JSON as arbitrary class.
- Support API like 'json.dump' and 'json.dumps' (#1 by @rruc).
- Fix #5: Raise
TypeMismatching
with priority overUnsupportedDecoding
.
- Support Python 3.6.x for environments where Python 3.7 is unavailable.
- Support decoding
List
.
- Support decoding parameterized data class.
- Prohibit decoding generic and raw type
- Support API like
json.load
andjson.loads
.
- Support decoding types as below:
- primitive types like
str
,int
,float
,bool
andNone
. -Union
andOptional
. - homogeneous and heterogeneous
Tuple
- variable-length
Tuple
. - non-generic dataclasses.
- primitive types like