public interface JsonValueAdapter
There is not a standard JSON format for Date or Timestamp types. By default Ebean uses ISO8601 "yyyy-MM-dd'T'HH:mm:ss.SSSZ" and "yyyy-MM-dd".
Note that Ebean will convert Joda types to either of the Date or Timestamp types and back for you.
JsonReadOptions| Modifier and Type | Method and Description |
|---|---|
String |
jsonFromDate(Date date)
Convert the Date to json string.
|
String |
jsonFromTimestamp(Timestamp date)
Convert the DateTime to json string.
|
Date |
jsonToDate(String jsonDate)
Parse the JSON string into a Date.
|
Timestamp |
jsonToTimestamp(String jsonDateTime)
Parse the JSON DateTime into a Timestamp.
|
Copyright © 2014. All Rights Reserved.