     typealias MappedObject = Person
     
     func mapping(inout tomap: Person, context: MappingContext) {
-        tomap.attitude <- "traits.attitude" >*<
+        tomap.attitude  <- "traits.attitude" >*<
+        tomap.hairColor <- .Mapping("traits.bodily.hair_color", HairColorMapping()) >*<
         context
     }
 }

import Foundation
import Crust

struct Person : AnyMappable {
    
    var bankAccounts: NSArray = [ 1234, 5678 ]
    var attitude: String = "awesome"
}

class PersonMapping : AnyMapping {

    
    var bankAccounts: NSArray = [ 0987, 6543 ]
    var attitude: String = "whoaaaa"
    var hairColor: HairColor = .Blue
    
    init() { }
    
    func generateJsonObject() -> Dictionary<String, AnyObject> {
        return [
            "traits" : [
                "attitude" : attitude,
                "bodily" : [
                    "hair_color" : hairColor.rawValue
                ]
            ],
        ]
    }
