Sean P. DeNigris wrote
> How do I handle mapping this second field with NeoJSONReader? Thanks

I ended up with FlickApiResponse class>>neoJsonMapping: mapper
        mapper for: self customDo: [ :mapping |
                mapping decoder: [ :dict | 
                        self new
                                status: (dict at: 'stat');
                                data: (dict at: dict keys first);
                                yourself ] ]

but maybe there's a more elegant way?



-----
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/NeoJSON-Mapping-name-changing-field-tp4775545p4775547.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Reply via email to