Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModelJsonWriter produces invalid JSON with NaN #26

Closed
alexvigdor opened this issue Jun 25, 2018 · 0 comments
Closed

ModelJsonWriter produces invalid JSON with NaN #26

alexvigdor opened this issue Jun 25, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@alexvigdor
Copy link
Collaborator

When encountering a numeric NaN value, the Json serializer produces the naive toString representation NaN which is not valid json and fails to parse in many parsers. We should rectify this so that NaN and Infinity are converted to null values when serialized to json.

@alexvigdor alexvigdor self-assigned this Jun 25, 2018
@alexvigdor alexvigdor added the bug Something isn't working label Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant