Serialize Django model to JSON