Skip to content
A small Flask decorator for returning json
Python
Find file
Latest commit 321f6b3 Nov 10, 2014 @fredj Update README

README

**the code is no longer maintained !**


flask-jsonify

A Flask decorator to return json objects.

Install:

    pip install -e 'git+http://github.com/fredj/flask-jsonify.git#egg=flask-jsonify'

Usage:

    from flaskext.jsonify import jsonify

    @app.route('/')
    @jsonify
    def index():
        return {'foo': 'bar', 'baz': [1,2,3]}
Something went wrong with that request. Please try again.