-
Notifications
You must be signed in to change notification settings - Fork 83
Open
@chunxige
Description
let data = """
{"a": "1"}
""".data(using: .utf8)!
struct A: Decodable {
@DefaultFalse var a: Bool
}
let m = try JSONDecoder.init().decode(A.self, from: data)
print(m.a) // print is false
but actual true is right answer
Metadata
Metadata
Assignees
Labels
No labels