Is there a way to use RestKit as an object mapper, say I give it a JSON string and an object mapping, then it gives me the object entity, without setting up the server and all those network related stuff?
Thanks!
updated:
what I need is:
- give Restkit an RKObjectMapping, the object class and JSON string
- get the parsed object.
what RestKit documentation told me is:
RKObjectManager* objectManager = [RKObjectManager objectManagerWithBaseURL:@"http://restkit.org"];
[objectManager.mappingProvider setMapping:articleMapping forKeyPath:@"articles"];
RKObjectLoader* loader = [RKObjectManager loadObjectsAtResourcePath:@"/articles" delegate:self];
where I do not need to create the object manager and load objects.