JSON Körper ist nicht deseralized von NancyModule

Ich habe eine route in mein Modul soll akzeptieren, eine JSON-Organ für die blog-post. Problem ist, dass der request-body nicht seralized. Wenn ich debug sehe ich die folgenden Werte auf Anfrage:

this.Request.Body.Length: 93
x.Keys.Count: 0

Die route

Post["/Blog"] = x =>
        {
            var post = this.Bind<Post>(); //Breakpoint

            PostService.Save(post);
            return post;
        };

Den HTTP-request

POST /Blog HTTP/1.1
Host: localhost:57888
Content-Type: application/json
Cache-Control: no-cache

{ "Post": { "Title":"Hello", "Content":"World", "Created":"2014-04-26" } }
Schreibe einen Kommentar