17 at 3:22 PM
To: "Sneed, Brandon" <brsn...@ebay.com>
Cc: Youming Lin <y...@us.ibm.com>, "swift-corelibs-dev@swift.org"
<swift-corelibs-dev@swift.org>
Subject: Re: [swift-corelibs-dev] Adding type conversion capabilities to JSON
encode/decode
On
ibs-dev@swift.org"
<swift-corelibs-dev@swift.org>
Subject: Re: [swift-corelibs-dev] Adding type conversion capabilities to JSON
encode/decode
On Aug 30, 2017, at 3:12 PM, Sneed, Brandon
<brsn...@ebay.com<mailto:brsn...@ebay.com>> wrote:
Thanks Tony,
Ah. That sho
elibs-dev-boun...@swift.org"
<swift-corelibs-dev-boun...@swift.org>
Subject: Re: [swift-corelibs-dev] Adding type conversion capabilities to JSON
encode/decode
Brandon
Sorry, I didn't realize you want it on the String type since you used other
string ivars in your example as well
on behalf of Tony Parker
> <anthony.par...@apple.com>
> Date: Wednesday, August 30, 2017 at 3:04 PM
> To: "Sneed, Brandon" <brsn...@ebay.com>
> Cc: Youming Lin <y...@us.ibm.com>, "swift-corelibs-dev@swift.org"
> <swift-corelibs-dev@swift
ev-boun...@swift.org>
Date: 08/30/2017 04:42 PM
Subject:Re: [swift-corelibs-dev] Adding type conversion capabilities to
JSON encode/decode
Thanks Youming,
That’s not quite what I meant. I may have misinterpreted what Tony was
saying though.
I wanted to do conversi
<swift-corelibs-dev@swift.org>
Subject: Re: [swift-corelibs-dev] Adding type conversion capabilities to JSON
encode/decode
I haven’t tried this myself yet, but you could imagine creating a type which
represents an ABV and decodes using a single value container. Then, your custom
behavio
ailto:anthony.par...@apple.com>>,
> "swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>"
> <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>>,
> "swift-corelibs-dev-boun...@swift.org
> <mailto:swift-corel
pple.com>, "swift-corelibs-dev@swift.org"
<swift-corelibs-dev@swift.org>, "swift-corelibs-dev-boun...@swift.org"
<swift-corelibs-dev-boun...@swift.org>
Subject: Re: [swift-corelibs-dev] Adding type conversion capabilities to JSON
encode/decode
Brandon
I cooked
"swift-corelibs-dev@swift.org" <swift-corelibs-dev@swift.org>,
"swift-corelibs-dev-boun...@swift.org"
<swift-corelibs-dev-boun...@swift.org>
Date: 08/30/2017 04:14 PM
Subject:Re: [swift-corelibs-dev] Adding type conversion c
com>, "swift-corelibs-dev@swift.org"
<swift-corelibs-dev@swift.org>, "swift-corelibs-dev-boun...@swift.org"
<swift-corelibs-dev-boun...@swift.org>
Subject: Re: [swift-corelibs-dev] Adding type conversion capabilities to JSON
encode/decode
Brandon
>JSON
libs-dev"
<swift-corelibs-dev@swift.org>
To: Tony Parker <anthony.par...@apple.com>
Cc: "swift-corelibs-dev@swift.org" <swift-corelibs-dev@swift.org>
Date: 08/30/2017 03:07 PM
Subject: Re: [swift-corelibs-dev] Adding type conversion capab
st 30, 2017 at 11:22 AM
To: "Sneed, Brandon" <brsn...@ebay.com<mailto:brsn...@ebay.com>>
Cc: "swift-corelibs-dev@swift.org<mailto:swift-corelibs-dev@swift.org>"
<swift-corelibs-dev@swift.org<mailto:swift-corelibs-dev@swift.org>>
Subject: Re:
f Itai Ferber <ifer...@apple.com>
Date: Wednesday, August 30, 2017 at 11:22 AM
To: "Sneed, Brandon" <brsn...@ebay.com>
Cc: "swift-corelibs-dev@swift.org" <swift-corelibs-dev@swift.org>
Subject: Re: [swift-corelibs-dev] Adding type conversion capabilities
Hi Brandon,
Thanks for looking at this! We’ve got plans internally to potentially
add a strategy to `JSONEncoder`/`JSONDecoder` to allow lenient
conversions like this — i.e. implicitly stringify numbers (or parse
them from string input), among some others.
This would be opt-in for consumers
Hi everyone,
Just throwing this out to see if anyone else is working on this, or has
opinions/suggestions on how it’s implemented. I’d like to add this to the
Codable/JSONDecoder/JSONEncoder system if no one else is working on it.
Type type conversion, I mean given this JSON payload:
{
15 matches
Mail list logo