objective-cjsongithub-mantle

mantle - How to write value transformer for a dictionary


I have this response from an API and trying to find ways to map this to an NSDictionary using a Mantle value transformer.

 {
   "baggage": {
    "BAG10": "3.5",
    "BAG15": "3.5",
    "BAG20": "3.5",
    "BAG30": "3.5",
    "BAG40": "3.5"
   }
}

Thanks in advance


Solution

  • By the looks of it, we don't need to write any transformers for this property. Mantle handles by itself.