You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apple Swift version 4.0.2 (swiftlang-900.0.69.2 clang-900.0.38)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
Votes
0
Component/s
Foundation
Labels
Bug, Codable
Assignee
None
Priority
Medium
md5: 3dc0fb1b6152165425ac5ac8aad629d6
Issue Description:
I'm trying to decode a JSON object that has a property whose name is the sole unicode character FEFF, which does not work. 200B works, for example. This is the type:
struct TopLevel: Codable {
{{ let empty: String}}
{{}}}
extension TopLevel {
{{ enum CodingKeys: String, CodingKey {}}
{{ case empty = "\u{feff}"}}
}
{{}}}
and this is the JSON:
{
{{ "\ufeff": "foo"}}
{{}}}
I've attached a test case. Compile it and invoke it with
./a.out blns-object.json
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
Apple Swift version 4.0.2 (swiftlang-900.0.69.2 clang-900.0.38)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: 3dc0fb1b6152165425ac5ac8aad629d6
Issue Description:
I'm trying to decode a JSON object that has a property whose name is the sole unicode character FEFF, which does not work. 200B works, for example. This is the type:
struct TopLevel: Codable {
{{ let empty: String}}
{{}}}
extension TopLevel {
{{ enum CodingKeys: String, CodingKey {}}
{{ case empty = "\u{feff}"}}
{{}}}
and this is the JSON:
{
{{ "\ufeff": "foo"}}
{{}}}
I've attached a test case. Compile it and invoke it with
./a.out blns-object.json
The text was updated successfully, but these errors were encountered: