Skip to content

Commit

Permalink
fix for "Can not start an object, expecting field name (context: Obje…
Browse files Browse the repository at this point in the history
…ct)"

Signed-off-by: Mikhail Khludnev <[email protected]>
  • Loading branch information
mkhludnev committed Jan 3, 2024
1 parent c4e6e3e commit 52e17a6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
return builder;
}

@Override
public boolean isFragment() {
return false;// since toXContent already have enclosing start/endObject braces
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand Down

0 comments on commit 52e17a6

Please sign in to comment.