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
struct Foo: Codable{
var v: BigInt
}
let jsonString = "{\"v\": 410100000008994450000000000}"
I had tried to decode it but I got this error. So I created this post to confirm.
typeMismatch(Swift.Array<Any>, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "v", intValue: nil)], debugDescription: "Expected to decode Array<Any> but found a number instead.", underlyingError: nil))
The text was updated successfully, but these errors were encountered:
piersonleo
changed the title
Can this be combined with json struct decoding?
Can this be combined with json struct decoding and encoding struct to json?
Mar 31, 2023
For example I have this struct and json string
I had tried to decode it but I got this error. So I created this post to confirm.
The text was updated successfully, but these errors were encountered: