Kitura takes full advantage of the Codable protocol introduced in Swift 4.0. For Codable routes, you can create router an endpoint method that accepts a Codable object for the request and uses a completion closure to pass a Codable object as the response.
As you'll see in the following source code, Kitura's Codable routers can simplify the creation of a CRUD API and the handling of JSON objects.