2 ms·
yep, I build response objects ( my own term, not great but it describes what they are ) that are basic subsets of the object that I want to serialize to json. T
by jaegerpicker 14y ago
yep, I build response objects ( my own term, not great but it describes what they are ) that are basic subsets of the object that I want to serialize to json. That way I'm sure only the fields that I really want to send are making it out.
- peterhunt 14y agoCool, I think a good JSONResponse implementation would bake that into the framework such that it's difficult to make the mistake you didn't make :)