TeamSmil3y / PigeonPost

Python web framework • apparently easy to use
https://docs.pigeon.teamsmiley.org
MIT License
1 stars 0 forks source link

🎨 Modify JSONResponse to preserve json object as attribute and dump data on render #26

Closed raspitim closed 10 months ago

raspitim commented 10 months ago

Currently, on initialization of a response.JSONResponse object, the data parameter gets directly dumped to a string using json.dumps(data), while it would be more convenient to preserve the JSON object in the data attribute and only dump it to a string on rendering.

raspitim commented 10 months ago

Closed as JSONResponse objects become deprecated.