Skip to main content

A Flask extension to allow client's to submit data using the MiniJSON codec

Project description


Build Status Test Coverage Issue Count PyPI PyPI version PyPI PyPI License

An extension for Flask to allow clients to submit data using the minijson codec by providing a Content-Type header of application/minijson.

flask-json is required to be initialized before FlaskMiniJSON, in such a way:

from flask_minijson import FlaskMiniJSON

app = Flask(__name__)

And you use it like this:

@app.route('/v1', methods=['POST'])
def endpoint():
    json = request.get_json()

if normal JSON is passed, it will be recognized. If minijson is sent by the client, it will be recognized as well.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask-minijson-0.4.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

flask_minijson-0.4-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page