json.loads raises "TypeError: expected string or buffer".

 But maybe I'm just using as_dict() the wrong way.