box-o-sand/ares/server/helpers.py
Dan Buch 2599a100da Playing with ActiveResource just a bit more
before trashing all of it.  What I really ought to be doing is playing
with Sequel or getting more cozy with ActiveRecord.
2012-05-29 16:41:47 -04:00

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)