by throwawaymaths · 3y ago · 0 comments
Having said that most implementations don't use decimal floating points to represent these.
The point is JSONschema could take a stand and say for example, "this filter will always fail when the operand is not the number representation of an exact integer".
Whether your JSON parser will preserve the precision correctly is another story. For JavaScript/ECMAScript, you'll need to use a library.
1 == "1"; // true
1n == "1"; // true
1n == "1n"; // false