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

[SR-2151]NSJSONSerialization.data produces illegal JSON code #2 #572

Merged
merged 3 commits into from Aug 19, 2016

Conversation

DaveLiu888
Copy link
Contributor

Old PR #540 reverted due to build break after merge.
Was asked to refile against master

NSJSONSerialization.data(withJSONObject:options) produces illegal JSON code

https://bugs.swift.org/browse/SR-2151
1. moved format logic out of NSNumber and in to NSJSonSerialization
2. lazy load the formatter to be instantiated if needed
3. create a single format string to work with all formats since we are lazy loading a single formatter
update to latest master
by removing casting
and updating syntax
@DaveLiu888
Copy link
Contributor Author

@swift-ci please test linux

1 similar comment
@parkera
Copy link
Member

parkera commented Aug 19, 2016

@swift-ci please test linux

@DaveLiu888
Copy link
Contributor Author

@parkera thanks, thought i'd give swift-ci a try, figured Jenkins git hook was whitelisted.
The tests are good tho 🎉

@parkera parkera merged commit 4aa15bc into apple:master Aug 19, 2016
@DaveLiu888
Copy link
Contributor Author

thanks @parkera

kateinoigakukun pushed a commit to kateinoigakukun/swift-corelibs-foundation that referenced this pull request Oct 11, 2023
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.

None yet

2 participants