📜  json 解码和选项 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:33.629000             🧑  作者: Mango

代码示例1
struct BlogPost: Decodable {
    let title: String
    /// Define a key as optional if it can be returned as `nil` or if it does not always exist in the JSON.
    let subtitle: String?
}