A lightweight decorator to make it easy to create json-based API views in django