@@ -0,0 +1,419 @@
+# coding: utf-8%0Aimport functools%0Afrom flask import Response, json%0A%0A%0Adef jsonify(func):%0A    %22%22%22JSON decorator.%22%22%22%0A%0A    @functools.wraps(func)%0A    def wrapper(*args, **kwargs):%0A        r = func(*args, **kwargs)%0A        if isinstance(r, tuple):%0A            code, data = r%0A        else:%0A            code, data = 200, r%0A        return Response(json.dumps(data), status=code, mimetype='application/json')%0A%0A    return wrapper%0A

Add jsonify decorator.