[swift-users] JSON keys survey

Maury Markowitz maury.markowitz at gmail.com
Sat Jun 24 06:45:00 CDT 2017


> On Jun 23, 2017, at 12:42 PM, Tony Parker via swift-users <swift-users at swift.org> 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_case_keys or CamelCase or other?

My experience is almost always lowerCamelCase. Thinking on that now, I wonder why that is.

> 3. If JSONEncoder/Decoder converted these, would you have any other need to specify custom keys?

Highly likely. The APIs I've used were developed by different teams and generally had data-like names that do not map well into UI properties.


More information about the swift-users mailing list