2 ms·
Presumably, if you're exchanging data between languages A and B, you have already figured out how to translate you want to map all of the data structures betwee
by tsimionescu 6y ago
Presumably, if you're exchanging data between languages A and B, you have already figured out how to translate you want to map all of the data structures between them.
Then, what I would expect you do is that you have code in A that can translate Complex Data Structure -> Lowest Common Denominator Data Structure -> A built-in JSON serialization -> JSON -> B built-in JSON deserialization -> Lowest Common Denominator -> Complex Data Structure B.
Of course, the language/library can't help with the complex -> lowest common denominator translation part, that one will have to get written by hand. But that shouldn't mean that the lowest common denominator has to be as basic as JSON itself.