Package com.influxdb.client
Class JSON
java.lang.Object
com.influxdb.client.JSON
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGson TypeAdapter for java.util.Date type If the dateFormat is null, ISO8601Utils will be used.classGson TypeAdapter for JSR310 LocalDate typestatic classGson TypeAdapter for JSR310 OffsetDateTime typestatic classGson TypeAdapter for java.sql.Date type If the dateFormat is null, a simple "yyyy-MM-dd" format will be used (more efficient than SimpleDateFormat). -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JSON
public JSON()
-
-
Method Details
-
createGson
public static com.google.gson.GsonBuilder createGson() -
getGson
public com.google.gson.Gson getGson()Get Gson.- Returns:
- Gson
-
setGson
Set Gson.- Parameters:
gson- Gson- Returns:
- JSON
-