diff --git a/docs/java-api/docs/index_.asciidoc b/docs/java-api/docs/index_.asciidoc index b32955d9d4f50..a5044126dde2c 100644 --- a/docs/java-api/docs/index_.asciidoc +++ b/docs/java-api/docs/index_.asciidoc @@ -103,7 +103,7 @@ If you need to see the generated JSON content, you can use the [source,java] -------------------------------------------------- -String json = builder.string(); +String json = Strings.toString(builder); --------------------------------------------------