document = new ObjectDocument<>(); document.set(article); document.include(author); System.out.println(moshi.adapter(Document.class).toJson(document)); "
"ObjectDocument document = new ObjectDocument<>();
document.set(article);
document.include(author);
System.out.println(moshi.adapter(Document.class).toJson(document)); "
The json does not have a relationships field