Class JSON
java.lang.Object
com.algorand.algosdk.algod.client.JSON
@Deprecated
public class JSON
extends java.lang.Object
Deprecated.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
JSON.ByteArrayAdapter
Deprecated.Gson TypeAdapter for Byte Array typestatic class
JSON.DateTypeAdapter
Deprecated.Gson TypeAdapter for java.util.Date type If the dateFormat is null, ISO8601Utils will be used.class
JSON.LocalDateTypeAdapter
Deprecated.Gson TypeAdapter for JSR310 LocalDate typestatic class
JSON.OffsetDateTimeTypeAdapter
Deprecated.Gson TypeAdapter for JSR310 OffsetDateTime typestatic class
JSON.SqlDateTypeAdapter
Deprecated.Gson 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 Constructor Description JSON()
Deprecated. -
Method Summary
Modifier and Type Method Description static com.google.gson.GsonBuilder
createGson()
Deprecated.<T> T
deserialize(java.lang.String body, java.lang.reflect.Type returnType)
Deprecated.Deserialize the given JSON string to Java object.com.google.gson.Gson
getGson()
Deprecated.Get Gson.java.lang.String
serialize(java.lang.Object obj)
Deprecated.Serialize the given Java object into JSON string.JSON
setDateFormat(java.text.DateFormat dateFormat)
Deprecated.JSON
setGson(com.google.gson.Gson gson)
Deprecated.Set Gson.JSON
setLenientOnJson(boolean lenientOnJson)
Deprecated.JSON
setLocalDateFormat(org.threeten.bp.format.DateTimeFormatter dateFormat)
Deprecated.JSON
setOffsetDateTimeFormat(org.threeten.bp.format.DateTimeFormatter dateFormat)
Deprecated.JSON
setSqlDateFormat(java.text.DateFormat dateFormat)
Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JSON
public JSON()Deprecated.
-
-
Method Details
-
createGson
public static com.google.gson.GsonBuilder createGson()Deprecated. -
getGson
public com.google.gson.Gson getGson()Deprecated.Get Gson.- Returns:
- Gson
-
setGson
Deprecated.Set Gson.- Parameters:
gson
- Gson- Returns:
- JSON
-
setLenientOnJson
Deprecated. -
serialize
public java.lang.String serialize(java.lang.Object obj)Deprecated.Serialize the given Java object into JSON string.- Parameters:
obj
- Object- Returns:
- String representation of the JSON
-
deserialize
public <T> T deserialize(java.lang.String body, java.lang.reflect.Type returnType)Deprecated.Deserialize the given JSON string to Java object.- Type Parameters:
T
- Type- Parameters:
body
- The JSON stringreturnType
- The type to deserialize into- Returns:
- The deserialized Java object
-
setOffsetDateTimeFormat
Deprecated. -
setLocalDateFormat
Deprecated. -
setDateFormat
Deprecated. -
setSqlDateFormat
Deprecated.
-