Upon trying to parse a JSON that contained two string properties of the form "yyyy-mm-dd", I get the following error:
com.google.gson.JsonSyntaxException: java.text.ParseException: Unparseable date: "2017-08-07"
I use ReimbursementRequest rr = gson.fromJson(req.getReader(), ReimbursementRequest.class); to parse them, where gson is a public static instance set to new Gson(). Will I need to define gson another way, and if so, how?
ReimbursementRequest, assuming it can easily fit?Dates.