Improve logging of JSON tests.