Surely "1337" is the same as 1337, right?
https://sopuli.xyz/post/14326368

Surely "1337" is the same as 1337, right? - Sopuli
Meme transcription: Panel 1: Bilbo Baggins ponders, “After all… why should I
care about the difference between int and String? Panel 2: Bilbo Baggins is
revealed to be an API developer. He continues, “JSON is always String, anyways…”
To whoever does that, I hope that there is a special place in hell where they for you to do type safe API bindings for a JSON API, and every time you use the wrong type for a value, they cave your skull in.
Well, apart from float numbers and booleans, all other types can only be represented by a string in JSON. Date with timezone? String. BigNumber/Decimal? String. Enum? String. Everything is a string in JSON, so why bother?
No problem with strings in JSON, until some smart developer you get JSONs from decides to interchangeably use String and number, and maybe a boolean (but only false) to show that the value is not set, and of course null for a missing value that was supposed to be optional all along but go figure that it was