Skip to content

SR-7195: JSONSerialization encodes Double differently on Darwin and Linux #1722

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

Merged
merged 2 commits into from
Oct 12, 2018

Conversation

spevans
Copy link
Contributor

@spevans spevans commented Oct 12, 2018

  • Use .description property of numbers to encode as String
    instead of using CFNumberFormatter for Float/Double,
    and serialising integers explictly.

…inux

- Use .description property of numbers to encode as String
  instead of using CFNumberFormatter for Float/Double,
  and serialising integers explictly.
@spevans
Copy link
Contributor Author

spevans commented Oct 12, 2018

@swift-ci please test

@spevans spevans requested a review from itaiferber October 12, 2018 14:52
@itaiferber
Copy link
Contributor

Looks reasonable — can we add a unit test to cover the specific values mentioned in SR-7195 so we can ensure that this at least helps with the round-tripping?

@spevans
Copy link
Contributor Author

spevans commented Oct 12, 2018

@swift-ci test

@spevans
Copy link
Contributor Author

spevans commented Oct 12, 2018

@swift-ci test and merge

1 similar comment
@spevans
Copy link
Contributor Author

spevans commented Oct 12, 2018

@swift-ci test and merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants