public static string SerializeProfile(LaunchProfile profile) => JsonConvert.SerializeObject(profile, Formatting.Indented, jsonConverters);
private static void ProvideDefaults(LaunchProfile profile) { // if a property doesn't exist in version 1.0 and the property is added in version 2.0 // the json put null, to this property profile.LauncherOptions = profile.LauncherOptions ?? new LauncherOptions(); }