parse json into structure

This whole branch of the if statement can be written as:

```rust
str::from_utf8(req.body.as_slice())
    .and_then(|body| json::from_str(body).ok())
    .and_then(|json| Decodable::decode(&mut json::Decoder::new(json).ok())
```