public static void ToJsonFile(this object objectToSerialize, string filePath) { FileSystemHelpers.WriteFile(filePath, JsonConvert.SerializeObject(objectToSerialize, Formatting.Indented)); }