You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Not sure if this is the best way to submit this.. I added a simple mechanism
to add formatters to types. Our need is that we always want dates formatted in
a specific way.
Usage is simple, just register the formatter with JSONValue.
ex:
JSONValue.registerFormatter(Date.class, new JSONFormatter() {
@Override
public String toJSONString(Object value) {
return ((Date)value).toGMTString();
}
});
Original issue reported on code.google.com by [email protected] on 29 Dec 2010 at 10:31
Original issue reported on code.google.com by
[email protected]
on 29 Dec 2010 at 10:31Attachments:
The text was updated successfully, but these errors were encountered: