Skip to content
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

字典包含Date 数组,如何反序列化? #392

Open
lily-Wan opened this issue Jul 8, 2020 · 0 comments
Open

字典包含Date 数组,如何反序列化? #392

lily-Wan opened this issue Jul 8, 2020 · 0 comments

Comments

@lily-Wan
Copy link

lily-Wan commented Jul 8, 2020

public struct Response: HandyJSON {
    public init() {}
    public init(days: [Date]) {
        self.days = days
    }
    public var days: [Date] = []
}

如何指定 Date 转化 ISO8601 格式

目前不做处理,解析失败,返回了空数组

@lily-Wan lily-Wan changed the title 字典包含Date 数组,如何序列化? 字典包含Date 数组,如何反序列化? Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant