alibaba / alibaba/HandyJSON

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

Open
#392 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.3k
Forks
677
PR merge metrics
No merged PRs in 30d

Description

```
public struct Response: HandyJSON {
public init() {}
public init(days: [Date]) {
self.days = days
}
public var days: [Date] = []
}
```
如何指定 **Date** 转化 **ISO8601** 格式

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the HandyJSON deserialization entry point for the Response example and trace how [Date] values are currently handled. Verify how an ISO8601 Date should be specified, then confirm that the days array is populated when the example JSON is parsed.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.