Questions tagged [rkobjectmapping]

31 questions
1
vote
1 answer

Retrived null in POST JSON RestKit

I have used RestKit and made a mapping with a managed object. I then use the postObject method but I have a problem when retrieved the body as it maps to null. RKObjectManager *objectManager = [RKObjectManager managerWithBaseURL:baseURL]; //…
wod
  • 812
  • 1
  • 10
  • 23
1
vote
1 answer

RestKit XML Mapping with same element and attribute name

I'm currently using RestKit with RKTBXMLSerialization to communicate with a restful xml-based web service. I have a very special problem with object mapping the response for one call. This special element has an attribute with the same name as the…
1024kilobyte
  • 413
  • 4
  • 10
0
votes
1 answer

How to add objects of entity class(DTO's value) using "addAttributeMappings" in RestKit?

My json response contains not only strings, but also array of DTO. Object mapping is not happening in the right format. json response body : { "id": null, "componentName": "Home Loan", "dynamicTableDetailDTOList": [ { "id": 1, …
ABM
  • 565
  • 7
  • 18
0
votes
0 answers

Repeated values in UITable cells from api json

After I do http call from api I get json file then I loop through it to get specific values: if let value: AnyObject = response.result.value as AnyObject? { let json = JSON(value) for (key, subJson) in json { let…
AlmoDev
  • 969
  • 2
  • 18
  • 46
0
votes
1 answer

RKObjectMapper not mapping array of dictionaries

I am using RKObjectMapping to map the response JSON to my predefined model but I am facing some issues when I try to map array of dictionaries. JSON Response : { total: 274, per_page: 10, current_page: 1, last_page: 28, prev_page_url: null, from:…
Paras Gorasiya
  • 1,295
  • 2
  • 13
  • 33
0
votes
1 answer

Recursive mapping using RKObjectMapping?

How to convert custom object(say objectType1) containing some properties and array of another custom object(say objectType2), into dictionary, using using RKObjectMapping. Basically I need to save a custom object in NSUserDeafults. - (NSDictionary…
0
votes
1 answer

Restkit: How to access part of the original JSON file and map to attribute

I am trying to map JSON file to my class using Restkit. I got the problem, How can I map the nested attribute to the class. the startTime & endTime is not mapped correctly, is there a convience way to access it ("start.datetime" does not work). I…
Joe SHI
  • 1,734
  • 4
  • 20
  • 39
0
votes
0 answers

RestKit how to build checkout from Git Repo?

I've checked out the RestKit repo and after a pod install in the top level folder attempting to build the tests and or the project fails. I've fixed some missing dependencies that still point to vendor but get a build fail in RKObjectMapping.h due…
ReaddyEddy
  • 323
  • 4
  • 7
0
votes
1 answer

Core Data & RestKit: Multiple relation to same object

I have a problem with the object mapping from a JSON string to a NSManagedObject. I use RestKit via getObject request and the Core Data integration. And I want to automatically map the JSON response. 1.) I get from a webservice the following…
messeb
  • 364
  • 2
  • 11
0
votes
0 answers

Restkit post with core data entities and relationship

I am trying to post a contents of an entity(Articles) and its relationship(Authors) with Restkit object mapping. Articles <->> Authors An article can have many authors. My current object mapping is as below, RKObjectMapping *authorMapping =…
0
votes
1 answer

Restkit: object mapping with xml

I try to map the response xml into object and the xml looks like: <list version="1.0"> <meta> <type>resource-list</type> </meta> <resources start="0" count="168"> <resource classname="Quote"> <field…
scorpiozj
  • 2,687
  • 5
  • 34
  • 60
0
votes
1 answer

RKConnectionDescription unstable with Restkit 0.20.3

I have two entities from two different web services which have a many to many relationship. entity A { NSString *id, NSString *details } entity B { NSString *key, NSString *value, NSString *type, NSString *foreignId } and I try to…
Apostolos
  • 409
  • 3
  • 13
0
votes
1 answer

RestKit 0.2x simultaneous RKManagedObjectRequestOperation

In RestKit 0.10.3 using delegate methods I was able to send simultaneous GET requests, even if mapping of each one was executed sequentially. I have GET requests which need so much time to receive a response, so I would like to send all requests…
Donnit
  • 1,217
  • 12
  • 19
0
votes
1 answer

Can not perform mapping using RestKit RKObjectMapping to JSON

please help make a mapping from following JSON { meta: {} notifications: [] response: { suggestedFilters: {} suggestedRadius: 922 headerLocation: "Manhattan" headerFullLocation: "Manhattan" headerLocationGranularity: "city" totalResults:…
Ali Amin
  • 667
  • 5
  • 17
0
votes
1 answer

Can't get RestKit 0.2 to POST parameters

So I'm trying to use [RKObjectManager postObject:path:parameters:success:failure:] but am having some trouble getting it working with my login POST request. For some reason I keep getting a response back from my server saying that the parameters for…
sfeuerstein
  • 913
  • 7
  • 21