diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/util/json/JsonBuilder.java b/modules/elasticsearch/src/main/java/org/elasticsearch/util/json/JsonBuilder.java index cf6245a180e..6720e977651 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/util/json/JsonBuilder.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/util/json/JsonBuilder.java @@ -49,6 +49,10 @@ public abstract class JsonBuilder { return StringJsonBuilder.Cached.cached(); } + public static BinaryJsonBuilder jsonBuilder() throws IOException { + return BinaryJsonBuilder.Cached.cached(); + } + public static BinaryJsonBuilder binaryJsonBuilder() throws IOException { return BinaryJsonBuilder.Cached.cached(); }