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?
to your account
I expected it to print:
Possible solution: Internally, String(describing:) can first check if the value is NSNumber and if so, do this comparison to check if the underlying value is a Bool:
nsNumber == kCFBooleanTrue || nsNumber == kCFBooleanFalse
Lack of this makes debugging more difficult, and also makes it annoying to use JSONSerialization which return Bool values wrapped in NSNumber.
The text was updated successfully, but these errors were encountered:
No branches or pull requests