Open albsala opened 10 years ago
After hours of tests :) I have solved it using DCCustomParserBlock but it would nice to have a DCDictionaryMapping anyway.
BTW: I have lost so much time figuring out why this didn't work:
DCCustomParser *customParser = [[DCCustomParser alloc] initWithBlockParser:parserBlock
forAttributeName:@"localizedContent"
onDestinationClass:[MyObject class]];
until i tried this:
DCCustomParser *customParser = [[DCCustomParser alloc] initWithBlockParser:parserBlock
forAttributeName:@"_localizedContent"
onDestinationClass:[MyObject class]];
Wow thanks man I lost probably 3 hours trying to figure out why DCCustomParser didn't work. we need docs on DCCustomParser!
It would be nice to have a class like "DCArrayMapping" for NSDictionary, because I have a JSON like this:
... with an undetermined number of languages, so I'm trying to map it to an object like this:
... and I don't know how to do it without this "DCDictionaryMapping".