bug fixes for json compare and time