public static async ValueTask ToJsonAsync <T>(this T obj, AbsolutePath path) { await using var fs = await path.Create(); obj.ToJson(fs); }
public static void ToJson <T>(this T obj, AbsolutePath path) { using var fs = path.Create(); obj.ToJson(fs); }
public static async ValueTask ToJsonAsync <T>(this T obj, AbsolutePath path, bool useGenericSettings = false) { await using var fs = await path.Create(); obj.ToJson(fs, useGenericSettings); }