Grails Date unmarshalling
If I get the following json from a RESTful client, how do I elegantly unmarshal the java.util.Date? (Is it possible without providing (aka. hard-coding) the format, that's what I mean by elegantly...) { "class": "url", "link": "http://www.empa.ch", "rating": 5, "lastcrawl" : "2009-06-04 16:53:26.706 CEST", "checksum" : "837261836712xxxkfjhds", } The cleanest way is probably to register a custom DataBinder for possible date formats. import java.beans.PropertyEditorSupport; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util