Is it evil to model JSON responses to classes when they are mostly smilar?
- by Aybe
Here's the problem :
While implementing a C# wrapper for an online API (Discogs) I've been faced to a dilemma : quite often the responses returned have mostly similar members and while modeling these responses to classes, some questions surfaces on which way to go would be the best.
Example :
Querying for a 'release' or a 'master' will return an…