A Flask extension to allow client's to submit data using the MiniJSON codec
Project description
flask-minijson
An extension for Flask to allow clients to submit data using the application/minijson codec
flask-json is required to be initialized before FlaskMiniJSON
, in such a way:
from flask_minijson import FlaskMiniJSON
app = Flask(__name__)
FlaskJSON(app)
FlaskMiniJSON(app)
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.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for flask_minijson-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4b1043f240c1cb896543e914e246763090f814fc023f47e7bdbca3eac286a3e |
|
MD5 | aa3638ac25b57cc50ac608d9dea4f59d |
|
BLAKE2b-256 | e1324b271bc08aaa941ab9343d08c63291793e76e520103b61f5ffa5bd8a4567 |