Change to work TO_JSON method parse TIMESTAMP objects.