Print JSON string for a test.