Czytaj osadzony obiekt w Jackson

Próbuję odczytać starszy kod JSON za pomocą Jackson 2.0-RC3, ale utknąłem z „osadzonym” obiektem.

Biorąc pod uwagę następujący JSON:

<code>{
    "title": "Hello world!",
    "date": "2012-02-02 12:23:34".
    "author": "username",
    "author_avatar": "http://.../",
    "author_group": 123,
    "author_prop": "value"
}
</code>

Jak mogę zmapować go do następującej struktury:

<code>class Author {
    @JsonPropery("author")
    private String name;

    @JsonPropery("author_avatar")
    private URL avatar;

    @JsonProperty("author_group")
    private Integer group;

    ...
}

class Item {
    private String title;

    @JsonProperty("date")
    private Date createdAt;

    // How to map this?
    private Author author;
}
</code>

Próbowałem to zrobić@JsonDeserialize ale wydaje mi się, że musiałbym zmapować całąItem obiekt w ten sposób.

questionAnswers(3)

yourAnswerToTheQuestion