We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tested this in the 5.1.4 Swift Docker Container from https://hub.docker.com/\_/swift
md5: 824ef3e9951a0e0fa1f7b095708f76f3
relates to:
Issue Description:
Consider the following program:
import Foundation let data = 2 do { let stored = try String(data: JSONEncoder().encode(data), encoding: .utf8)! print(stored) print(try JSONDecoder().decode(Int.self, from: Data(stored.utf8))) } catch { print(error) }
On macOS, this will work: The `JSONEncoder` produces a `Data` with contents `2`.
On Linux, this prints the following error:
invalidValue(2, Swift.EncodingError.Context(codingPath: [], debugDescription: "Top-level Int encoded as number JSON fragment.", underlyingError: nil))
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
#2713
spevans
No branches or pull requests
Environment
I tested this in the 5.1.4 Swift Docker Container from https://hub.docker.com/\_/swift
Additional Detail from JIRA
md5: 824ef3e9951a0e0fa1f7b095708f76f3
relates to:
Issue Description:
Consider the following program:
On macOS, this will work: The `JSONEncoder` produces a `Data` with contents `2`.
On Linux, this prints the following error:
The text was updated successfully, but these errors were encountered: