Code example for JsonParseException

0
		String strVal = element.getAsString();
 
		try { 
			return deserialize(strVal);
		} catch (ParseException e) {
			throw new JsonParseException(e);
		} 
 
	} 
 
	/** 
	 * Serializes a Date to a JsonElement containing a ISO-8601 formatted date 
	 */ 
	@Override 
	public JsonElement serialize(Date date, Type type,
			JsonSerializationContext ctx) {
		JsonElement element = new JsonPrimitive(serialize(date));
		return element;
	}