4 ms·
That's why you use a canonicalizing JSON serializer, which you'd also want to use if you were tracking changes to JSON in git, for example.
by DonHopkins 12y ago
That's why you use a canonicalizing JSON serializer, which you'd also want to use if you were tracking changes to JSON in git, for example.
- azinman2 12y agoThat's very limiting. So I'm suppose to use the same Json library on various platforms for client as well as server? And what have you really gained?
- hmbg 12y agoThe OP was talking about the current incumbent, and the solution proposed does not work for web applications, since the JSON.stringify in most browsers do not sort keys. Sure, you could implement your own javascript version, but it will be at least a couple of orders of magnitude slower.