ios - Access JSON response before RestKit maps it -


I am using an API that is )}} ' .s. Safety measures E.g.

  response.body =)]}, [{"id": 13, "name": "demo company", "total_mount_du": 15714.2}]  

Reset can not map, so before mapping, I need to remove the first item from the reaction.

What is the best way to do this?

a migration surveillance category:

  @ Interface Majson Serialization: NSOBJack & lt; RKAreasisation & gt; @end @implementationMyJsonSerialization + (id) objectFromData: (NSData *) Data Error: (NSError **) Error {NSString * responseStr = [[NSString alloc] initWithData: data encoding: NSUTF8StringEncoding]; NSDT * Refined Data = Data; If ([Response SRT is: Prefix: @ "]]} '',"]] {NSRange Range = NSMKrange (5, Data. LONG-5); Refined Data = [Data SubDataWidtharan: Category]; } ID result = [NSJSNSRailization JSONObjectWithData: RifandData option: 0 error: error]; Return result; } + (NSDT *) Data FrameAmbact: (ID) Object Error: (NSEROR **) Error {Returns [NSJSONSIRLArilization Datavijan Object: Object Option: 0 Error: Error]; } @end  

and use it like this:

  [RKMIMETypeSerialization registerClass: [MyJsonSerialization class] forMIMEType: @ "Application / Jason"];  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -