4 ms·
MongoDB uses this to express decimals as JSON: { "$numberDecimal": "<number>" }
by fulafel 8y ago
MongoDB uses this to express decimals as JSON: { "$numberDecimal": "<number>" }
- e12e 8y agoI suspect creating a specification based on what mongodb does/did might be the better approach - but a quick search for "typed json" turned up: https://www.tjson.org/ https://www.tjson.org/ Not sure if I'm a fan of the syntax - but some kind of open, sane, standard would be nice.