objective c - RestKit resolve objects given an id or partial representation in JSON -


i have json array, like:

[{         "name": "john smith",         "occupationid": 3     },     {         "name": "steven davis",         "occupationid": 2     } ] 

the occupation response looks like:

[{         "id": 2,         "name": "teacher"     },     {         "id": 3,         "name": "teaching assistant"     } ] 

is there way allow restkit request correct data occupations, given id? know can done if data persisted using coredata, via addconnectionforrelationship:connectedby: method, rather data transient, given server local , there no need persist data. i'm aware rkobjectmapping not support identifiactionattributes property, meaning cannot (to knowledge) designate way allow class declare unique, identifying property.

any appreciated. using mix of objective-c , swift, , such, not mind answers in either language.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -