use flask.jsonify instead of custom json encode function
Merge pull request #84 from parkouss/use_flask_jsonify

use flask.jsonify instead of custom json encode function