Set flask config 'JSON_SORT_KEYS' to false

This commit is contained in:
Shreya 2020-07-31 22:11:39 +05:30
parent 82eef22b0f
commit f6fd93bcb1
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ def init_api_resources(api):
def init_app(mongo_url): def init_app(mongo_url):
app = Flask(__name__) app = Flask(__name__)
app.config['JSON_SORT_KEYS'] = False
api = flask_restful.Api(app) api = flask_restful.Api(app)
api.representations = {'application/json': output_json} api.representations = {'application/json': output_json}