Comment

Tamer

When I ran your sample on my db table I got;
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: datetime.date(2014, 3, 24) is not JSON serializable

Replies

Peter Bengtsson

You need to take care of things like datetime.date.
E.g. http://stackoverflow.com/a/27058505