CleanJSON icon indicating copy to clipboard operation
CleanJSON copied to clipboard

Swift JSON decoder for Codable

Results 9 CleanJSON issues
Sort by recently updated
recently updated
newest added

This code makes the exception: ``` let str = "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" let data = str.data(using: .utf8)! let decoder = CleanJSONDecoder() do { let value = try decoder.decode(Double.self, from: data) print("OK =...

enum RankListType: String, Codable { case user = "USER" case hall = "HALL" }

struct CustomAdapterAAA: JSONAdapter { public func adapt(_ decoder: CleanDecoder) throws -> String { return "default string" } } 这个方法可以给这个decoder解析出来的所有string设置默认值,想问下,可以给key设置单独的默认值么,比如说一个model里有strA,想要默认值是“strA” strB,想要默认值是“strB” 支持这样单独设置默认值么?

enhancement

{ key: [{newName: "jack"}] } 如果我想把newName 映射成name,我该怎么写呢?

From [Apple docs](https://developer.apple.com/support/third-party-SDK-requirements/): Starting in spring 2024, you must include the privacy manifest for any SDK listed below when you submit new apps in App Store Connect that include those...