Using simplejson for jsonify the data of type Decimal, which will used

for numeric type of PostgreSQL, in python using psycopg2.
This commit is contained in:
Ashesh Vashi
2016-01-09 18:05:15 +05:30
parent 1ba9067c60
commit d2897a334f
3 changed files with 4 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
from flask import Response
from flask.ext.babel import gettext as _
import json
import simplejson as json
def make_json_response(success=1, errormsg='', info='', result=None,