 Route.get("session") { request in
 	let response: Response
 	do {
-		response = try Response(status: .OK, json: [
-			"session.data": request.session.data,
-			"request.cookies": request.cookies,
-			"instructions": "Refresh to see cookie and session get set."
-		])
+		let json: [String: Any] = [
+                        "session.data": request.session.data,
+                        "request.cookies": request.cookies,
+                        "instructions": "Refresh to see cookie and session get set."
+                ];
+		response = try Response(status: .OK, json: json)
 	} catch {
 		response = Response(error: "Invalid JSON")
 	}

			"lang": "Swift"
		]
	]
}

Route.any("data/:id") { request in
	let response = [
		"request": [
			"path": request.path,
			"data": request.data,
			"parameters": request.parameters,
		]
	]

	return response

}

Route.get("json") { request in 
	let response: [String: Any] = [
		"number": 123,
		"string": "test",
		"array": [
