Check out my gist here: http://gist.github.com/285017
I wrote this as a crude method for JSON serialization in my app. I
didn't fork the repo because I figured there were already plans in
works to provide this native to the document object.
What are the groups thoughts on serialization for documents and
querysets?