How do I handle a JSON request in Bottle? How do I handle a JSON request in Bottle? json json

How do I handle a JSON request in Bottle?


Now since bottle 0.10, the request.json is ready for use :)

Document is here.


request.json is limited by MEMFILE_MAX.

Another way works if request data is larger than MEMFILE_MAX

json.load(request.body)