-
Notifications
You must be signed in to change notification settings - Fork 149
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
Empty string parsed as <null> #53
Comments
This is expected behavior with using let yaml = try Yams.load(yaml: string, .basic)
let dictionary = yaml as! [String: Any]
print(dictionary["emptyString"]!) // "\n" |
I see. If I used the |
Currently, since |
This should now be doable via |
If you try to specify an empty string as a value it's parsed as
<null>
instead of an empty stringyaml file:
The text was updated successfully, but these errors were encountered: