Reference parent object while deserializing a JSON using Gson
<p>Given the following JSON:</p>

<pre><code>{
    "authors": [{
        "name": "Stephen King",
        "books": [{
            "title": "Carrie"
        }, {
            "title": "The Shining"
        }, {
            "title": "Christine"
        }, {
            "title": "Pet Sematary"
        }]
    }]
}
</code></pre>

<p>And this object structure:</p>

<pre><code>public class Author {
    private List&lt;Book&gt; books;
    private String name;
}

public class Book {
    private transient Author author;
    private String title;
}
</code></pre>

<p>Is there a way, using the Google Java library Gson, to deserialize the JSON and that the books objects has a reference to the "parent" author object? </p>

<p>Is it possible <strong>without</strong> using a custom deserializer? </p>

<ul>
<li>If yes: How?</li>
<li>If no: Is is still possible to do it with a custom deserializer?</li>
</ul>