forked from ColtonProvias/sqlalchemy-jsonapi
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Decimal type in JSON serializer
SQLa Numeric types get returned as decimal.Decimal objects. simplejson has support for this, whereas the builtin json module does not and there's no clean way to subclass it in a way that it won't convert the value to a JSON string. Fixes ColtonProvias#23
- Loading branch information
Greg Hill
committed
Aug 20, 2016
1 parent
9b8a8db
commit 45843ee
Showing
3 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,3 +72,6 @@ target/ | |
pyvenv.cfg | ||
pip-selfcheck.json | ||
|
||
# PyCharm | ||
.idea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ passlib==1.6.5 | |
pathtools==0.1.2 | ||
SQLAlchemy-Utils==0.30.16 | ||
pytest==2.7.3 | ||
simplejson==3.8.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters