Adden json support for dates