You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
toJSON() is defined such that you return a value, which is then given to JSON.stringify(), it does not return a string.
toJSONTag() now returns a string, which should be valid JSONTag, but there is no check.
Instead it should return a value, just like toJSON(), and JSONTag should then stringify() it. This way, the result will always be valid JSONTag.
In addition, the default toJSONTag() functions expect toJSON() to return a string, which is incorrect.
The text was updated successfully, but these errors were encountered:
toJSON() is defined such that you return a value, which is then given to JSON.stringify(), it does not return a string.
toJSONTag() now returns a string, which should be valid JSONTag, but there is no check.
Instead it should return a value, just like toJSON(), and JSONTag should then stringify() it. This way, the result will always be valid JSONTag.
In addition, the default toJSONTag() functions expect toJSON() to return a string, which is incorrect.
The text was updated successfully, but these errors were encountered: