Hacker News new | ask | show | jobs
by account_taken 4844 days ago
Exactly. We have a generic serialize() method in our models to do common toJSON. In item views, where performance is critical, the view itself transforms a subset of the models properties to JSON.