Hacker News
new
top
best
ask
show
job
JSON Is Lying to You
(
blog.gaborkoos.com
)
2 points
by
fagnerbrack
2 hours ago
2 comments
Kushvinth
an hour ago
A wire format is a contract, not a mirror of your runtime
hans_castorp
2 hours ago
That's not JSON "lying", it's JavaScript not signalling a problem if it can't map a value.
Kushvinth
an hour ago
Exactly; the problem is the with the way that js represents without preserving their original format/sematic.
hans_castorp
34 minutes ago
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.