2 points | by fagnerbrack 7 hours ago ago
4 comments
A wire format is a contract, not a mirror of your runtime
That's not JSON "lying", it's JavaScript not signalling a problem if it can't map a value.
Exactly; the problem is the with the way that js represents without preserving their original format/sematic.
What I wanted to say: I think the headline is wrong.
It's not "JSON lying", it's JavaScript not being able to properly map all data types to JSON.
A wire format is a contract, not a mirror of your runtime
That's not JSON "lying", it's JavaScript not signalling a problem if it can't map a value.
Exactly; the problem is the with the way that js represents without preserving their original format/sematic.
What I wanted to say: I think the headline is wrong.
It's not "JSON lying", it's JavaScript not being able to properly map all data types to JSON.