Metadata-Version: 2.1
Name: flask-minijson
Version: 0.4
Summary: A Flask extension to allow client's to submit data using the MiniJSON codec
Home-page: https://github.com/Dronehub/flask-minijson
Author: Piotr Maślanka
Author-email: pmaslanka@smok.co
Project-URL: Code, https://github.com/Dronehub/flask-minijson
Project-URL: Issue tracker, https://github.com/Dronehub/flask-minijson/issues
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Libraries
Requires-Python: !=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
Description-Content-Type: text/markdown; charset=UTF-8
License-File: LICENSE

flask-minijson
==============

[![Build Status](https://travis-ci.com/Dronehub/flask-minijson.svg)](https://travis-ci.com/Dronehub/flask-minijson)
[![Test Coverage](https://api.codeclimate.com/v1/badges/34b392b61482d98ad3f0/test_coverage)](https://codeclimate.com/github/Dronehub/flask-minijson/test_coverage)
[![Issue Count](https://codeclimate.com/github/Dronehub/flask-minijson/badges/issue_count.svg)](https://codeclimate.com/github/Dronehub/flask-minijson)
[![PyPI](https://img.shields.io/pypi/pyversions/flask-minijson.svg)](https://pypi.python.org/pypi/flask-minijson)
[![PyPI version](https://badge.fury.io/py/flask-minijson.svg)](https://badge.fury.io/py/flask-minijson)
[![PyPI](https://img.shields.io/pypi/implementation/flask-minijson.svg)](https://pypi.python.org/pypi/flask-minijson)
[![PyPI](https://img.shields.io/pypi/wheel/flask-minijson.svg)]()
[![License](https://img.shields.io/pypi/l/flask-minijson)](https://github.com/Dronehub/flask-minijson)

An extension for Flask to allow clients to submit data using the
[minijson](https://github.com/Dronehub/minijson) codec by providing
a `Content-Type` header of `application/minijson`.

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

```python
from flask_minijson import FlaskMiniJSON

app = Flask(__name__)
FlaskJSON(app)
FlaskMiniJSON(app)
```

And you use it like this:

```python
@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.
