Test harness: Use JSON unless multipart is necessary