#10 use current_app json encoder instead of flask.json