Flask-JSON is a Flask extension that provides better JSON support, including automatic JSON serialization for object instances (via __json__() method), datetime objects, and arbitrary types. The current version is 0.4.0. Development appears to be in a maintenance state with no recent releases.
pip install flask-jsonVerified import paths — ran on the pinned version, not inferred.
Minimal Flask app using Flask-JSON to serialize a custom object.
Consider using flask.jsonify() with custom JSONEncoder or using Flask-JSON's Jsonify only in specific routes but be aware of the global override.
Ensure all custom classes that need serialization implement a __json__() method returning a JSON-serializable dict.
Use `from flask_json import FlaskJSON, Jsonify` instead of deprecated `flask.ext.json`.
No dependency data recorded yet.