TLDR IT · MISCELLANEOUS
YOUR JSON IS LYING TO YOU
Summary from the TLDR IT newsletter
JavaScript's familiar JSON serialization round trip can silently alter data rather than preserve it. Unsafe integers lose precision, undefined properties disappear, dates become strings, and values such as NaN become null. Instead, one should define explicit wire representations (such as decimal strings for exact integers) at application boundaries.