I think we can pass an option to JsonConvert.SertializeObject to specify to use whitespace.