Follow article "Efficient JSON in Swift with Functional Concepts and Generic" http://robots.thoughtbot.com/efficient-json-in-swift-with-functional-concepts-and-generics