nsscreencast / comments

Public comments on NSScreencast.com
0 stars 0 forks source link

Smart JSON Parsing - NSScreencast #12

Open subdigital opened 3 years ago

subdigital commented 3 years ago

Written on 10/25/2012 14:34:39

URL: https://nsscreencast.com/episodes/39-smart-json-parsing

subdigital commented 3 years ago

originally written by Guest on 11/12/2012 10:13:52

Thank's a lot for your work. The only thing, I've got from this podcast is: That I have to speed up my type-frequency. The understanding of the given content = nil.
"Parsing JSON responses into Objective-C Objects can be tedious." Yes. "Teaching" also!

subdigital commented 3 years ago

originally written by dylan on 01/22/2013 03:31:47

Please talk about rest kit

subdigital commented 3 years ago

originally written by Dmytro Prince on 07/30/2013 18:09:04

How this

NSString *inKey = @" LastName";
NSArray *components = [inKey componentsSeparatedByString:@"_"];
return [NSString camelCase:components];

Can return @"lastName" ?

Some kind of joke?:)

subdigital commented 3 years ago

originally written by subdigital on 07/30/2013 18:18:14

the camelCase method would turn each component (in this case it's an array with 1 element "LastName") into one where the first character is lowercase and the rest are capitalized: "LastName" -> ["LastName"] -> "lastName".

For an example with underscores: "last_name" -> ["last", "name"] -> "lastName"

subdigital commented 3 years ago

originally written by Dmytro Prince on 07/31/2013 15:51:11

Right.
Thanks for quick response.