=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -6,6 +6,7 @@ namespace adas_core.Domain.Utils;
|
||||
/// <summary>
|
||||
/// Provides extension methods for JSON-related operations.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=705e834 -->
|
||||
public static class JsonExtensions
|
||||
{
|
||||
/// <summary>
|
||||
@@ -15,6 +16,7 @@ public static class JsonExtensions
|
||||
/// <param name="inputPath">The path to the source JSON file to read from.</param>
|
||||
/// <param name="outputPath">The path to the destination BSON file to write to.</param>
|
||||
/// <param name="fileMode">The file mode used to open the output file. Defaults to <see cref="FileMode.CreateNew"/>.</param>
|
||||
/// <!-- aidoc:v1 sig=c16c55c body=99b3e3a -->
|
||||
public static void CopyToBson(string inputPath, string outputPath, FileMode fileMode = FileMode.CreateNew)
|
||||
{
|
||||
using var textReader = File.OpenText(inputPath);
|
||||
|
||||
Reference in New Issue
Block a user