com.google.gson.JsonSyntaxException: 1530842820000
1530842820000 是服务器直接返回的Date值由 Gson 解析后出来的值。
后台发出:
前台接收到的JSON数据:
解决方式:
private Date startDate;
private Date endDate; ---》 Date改为String
com.google.gson.stream.MalformedJsonException
com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $