Package org.apache.fineract.client.util
Class JSON.LocalDateTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<LocalDate>
org.apache.fineract.client.util.JSON.LocalDateTypeAdapter
- Enclosing class:
JSON
GSON TypeAdapter for JSR-310 LocalDate type, which Fineract API's RETURNS as JSON array in the
[2009,1,1] format, but EXPECTS as String not Array and with a locale and dateFormat. Weird, but so it is
(see FINERACT-1220 invalid input: '&' FINERACT-1233).
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
LocalDateTypeAdapter
public LocalDateTypeAdapter()
-
-
Method Details
-
write
- Specified by:
writein classcom.google.gson.TypeAdapter<LocalDate>- Throws:
IOException
-
read
- Specified by:
readin classcom.google.gson.TypeAdapter<LocalDate>- Throws:
IOException
-