Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Realm: Map JSON to Realm-Objects with Alamofire

I would like to use Realm and Alamofire to map JSON to my database objects. Are there good tutorials out there?

like image 916
netshark1000 Avatar asked Nov 02 '15 14:11

netshark1000


1 Answers

Realm offers built-in limited capabilities of mapping arbitrary JSON structures to RLMObjects. But there are some good third-party libraries, which could assist you with your use-case. You might want to checkout these:

  • Realm-JSON (Objective-C), which offers a declarative, Mantle like way of defining your mapping
  • ObjectMapper (Swift), which offers Realm and Alamofire support
like image 90
marius Avatar answered Sep 28 '22 16:09

marius