2 ms·
This is how everyone is already using JSON. This post is complaining about a problem that doesn’t exist.
by whalesalad 6y ago
This is how everyone is already using JSON.
This post is complaining about a problem that doesn’t exist.
- Twisol 6y agoSadly, I can personally attest that the problem does exist, and that not everybody is performing serialization in such a reasonable, decoupled way. It sounds like you agree with the article, but find its existence unnecessary. That's fine.
- smaudet 6y agoI have to agree with the other bloke, this is very much a problem in certain 'magical' JSON 'serializers' in certain very popular server languages, e.g. Java, Spring, FasterXML. I've seen JSON ser done right where you do just ser/deser direct from/to a JSON object, then perform a manual mapping to domaim or business objects, I've seen it done the wrong way where the domain and data objects are highly coupled, by default. I think the OP is bemoaning that being a common practice.