public class JSONDateConvertor extends Object implements JSON.Convertor
Date
to JSON.
If fromJSON is true in the constructor, the JSON generated will
be of the form {class="java.util.Date",value="1/1/1970 12:00 GMT"}
If fromJSON is false, then only the string value of the date is generated.Constructor and Description |
---|
JSONDateConvertor() |
JSONDateConvertor(boolean fromJSON) |
JSONDateConvertor(String format,
TimeZone zone,
boolean fromJSON) |
JSONDateConvertor(String format,
TimeZone zone,
boolean fromJSON,
Locale locale) |
public JSONDateConvertor()
public JSONDateConvertor(boolean fromJSON)
public Object fromJSON(Map map)
fromJSON
in interface JSON.Convertor
public void toJSON(Object obj, JSON.Output out)
toJSON
in interface JSON.Convertor
Copyright © 1995-2015 Webtide. All Rights Reserved.