private JSONArray datesToJson ( Collection < Date > individualDates ) { if ( null != individualDates ) { JSONArray result = new JSONArray ( ) ; for ( Date d : individualDates ) { result . put ( dateToJson ( d ) ) ; } return result ; } return null ; }
Converts a list of dates to a Json array with the long representation of the dates as strings .