Re: [swift-users] JSON keys survey

2017-06-26 Thread Abdullah Khan via swift-users
this article is a good starting point; http://benscheirman.com/2017/06/ultimate-guide-to-json-parsing-with-swift-4/ > On Jun 23, 2017, at 9:42 AM, Tony Parker via swift-users > wrote: > > Hi all, > > This has co

Re: [swift-users] JSON keys survey

2017-06-24 Thread Maury Markowitz via swift-users
> On Jun 23, 2017, at 12:42 PM, Tony Parker via swift-users > wrote: > > Hi all, > > This has come up a few times in recent threads, and I wanted to gather some > additional info on your real world use cases. Just reply to me, and any input > is appreciated: > > 1. Does your JSON use snake_c

Re: [swift-users] JSON keys survey

2017-06-24 Thread Brent Royal-Gordon via swift-users
> On Jun 23, 2017, at 9:42 AM, Tony Parker via swift-users > wrote: > > 1. Does your JSON use snake_case_keys or CamelCase or other? My internal APIs use snake_case. Several APIs I write against (not necessarily in Swift), like Heroku and Stripe, also use snake_case. The JSON Feed format uses

Re: [swift-users] JSON keys survey

2017-06-23 Thread Rien via swift-users
> On 23 Jun 2017, at 18:42, Tony Parker via swift-users > wrote: > > Hi all, > > This has come up a few times in recent threads, and I wanted to gather some > additional info on your real world use cases. Just reply to me, and any input > is appreciated: > > 1. Does your JSON use snake_cas

Re: [swift-users] JSON keys survey

2017-06-23 Thread Rimantas Liubertas via swift-users
> This has come up a few times in recent threads, and I wanted to gather > some additional info on your real world use cases. Just reply to me, and > any input is appreciated: > > 1. Does your JSON use snake_case_keys or CamelCase or other? > It depends on whether API is intended to be used with J

Re: [swift-users] JSON keys survey

2017-06-23 Thread Matthew Johnson via swift-users
> 1. Does your JSON use snake_case_keys or CamelCase or other? I usually see snake_case or lowerCamelCase. They are roughly equally common in my experience. > 2. Is the key type consistent throughout the JSON? Usually. > 3. If JSONEncoder/Decoder converted these, would you have any other nee

[swift-users] JSON keys survey

2017-06-23 Thread Tony Parker via swift-users
Hi all, This has come up a few times in recent threads, and I wanted to gather some additional info on your real world use cases. Just reply to me, and any input is appreciated: 1. Does your JSON use snake_case_keys or CamelCase or other? 2. Is the key type consistent throughout the JSON? 3. If