json serialization handles datetime and decimal numbers