2 ms·
That's not the only way to deal with them, you can specify type like bson. The nice thing about that is it solves the problem rather than hoping it doesn't mat
by zamadatix 6y ago
That's not the only way to deal with them, you can specify type like bson.
The nice thing about that is it solves the problem rather than hoping it doesn't matter or assuming each program's validator will think to note all of the possible data types not compatible with the program natively. If a u32 is defined in the file and you've only got doubles to work with it's a given you'll have to deal with it in your tool specific validation. For everyone else it's well defined.
The downside is it's a bit more verbose and if you have all of that info already it's pretty easy to jump to just using a binary format which will be more efficient anyways.