4 ms·
I think that is the issue.
by anamexis 3y ago
I think that is the issue.
- baq 3y agoI agree with everyone here: it’s named correctly, but other languages did it… differently. (Stopping short of “better”, but only just.)
- randomdata 3y agoThat is the solution. It allows JSON.serialize to exhibit the non-corrupting behaviour, giving a reasonable indication to the developer which is which by the name alone. The issue, if there is one, is that nobody ever got around to implementing JSON.serialize.
- accrual 3y agoIf a JSON.serialize function did exist, would it do the same thing as JSON.stringify, just with catchable exceptions when one tries to serialize something that can't be (e.g. functions, date objects)?