2599a100da
before trashing all of it. What I really ought to be doing is playing with Sequel or getting more cozy with ActiveRecord.
6 lines
153 B
Python
6 lines
153 B
Python
import json
|
|
|
|
def json_loads_from_request(request):
|
|
raw = request.body.s_iter.read(int(request.headers['Content-Length']))
|
|
return json.loads(raw)
|