littletable 2.1.2
ptmcg
released this
24 Jan 00:10
·
117 commits
to master
since this release
-
Added
json_encoder
argument toTable.json_export
, so that custom data fields can get exported without raising JSONEncodeError. peps.py example has been modified to demonstrate this. Thejson_encoder
argument can take a single JSONEncoder subclass, or a tuple of subclasses, to be tried in sequence. Each should follow the pattern given in the online Python docs for the json module. (See updated code in examples/peps.py to see a custom JSONEncoder.)Also added
json_decoder
argument toTable.json_import
, though it only supports passing a single class.