We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 618b22d commit a0c9ca2Copy full SHA for a0c9ca2
1 file changed
src/main/java/io/weaviate/client6/v1/internal/json/JSON.java
@@ -2,6 +2,7 @@
2
3
import com.google.gson.Gson;
4
import com.google.gson.GsonBuilder;
5
+import com.google.gson.ToNumberPolicy;
6
import com.google.gson.reflect.TypeToken;
7
8
import io.weaviate.client6.v1.internal.orm.PropertyFieldNamingStrategy;
@@ -49,6 +50,8 @@ public final class JSON {
49
50
51
// ORM FieldNaminsStrategy ------------------------------------------------
52
gsonBuilder.setFieldNamingStrategy(PropertyFieldNamingStrategy.INSTANCE);
53
+
54
+ gsonBuilder.setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE);
55
gson = gsonBuilder.create();
56
}
57
0 commit comments