adding json encoder for handling datatime/decimal values