Jakar.Json.Marten
10.2.0
dotnet add package Jakar.Json.Marten --version 10.2.0
NuGet\Install-Package Jakar.Json.Marten -Version 10.2.0
<PackageReference Include="Jakar.Json.Marten" Version="10.2.0" />
<PackageVersion Include="Jakar.Json.Marten" Version="10.2.0" />
<PackageReference Include="Jakar.Json.Marten" />
paket add Jakar.Json.Marten --version 10.2.0
#r "nuget: Jakar.Json.Marten, 10.2.0"
#:package Jakar.Json.Marten@10.2.0
#addin nuget:?package=Jakar.Json.Marten&version=10.2.0
#tool nuget:?package=Jakar.Json.Marten&version=10.2.0
Jakar.Json.Marten
Jakar.Json for Marten, the PostgreSQL document database and event store.
builder.Services.AddMarten(opts =>
{
opts.Connection(connectionString);
opts.UseJakarJson(); // camelCase, as [JsonModel(Naming = JsonNaming.CamelCase)]
});
Models: documents and events of
[JsonModel]types are written to and read fromjsonbby Jakar.Json, through Marten's System.Text.Json serializer.Other types keep System.Text.Json.
LINQ: Marten builds JSON paths from its own casing setting, not from your models. Pass the casing your models are written with:
Casing.CamelCase(the default here) for camelCase;Casing.Defaultfor names as declared;Casing.SnakeCasefor snake_case.
Otherwise, queries look for properties the documents don't have.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Jakar.Json (>= 10.2.0)
- Jakar.Json.SystemTextJson (>= 10.2.0)
- Marten (>= 9.50.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
10.2.0: built against Jakar.Json 10.2.0, whose writers take a ref TWriter; 10.1.0 calls the removed IBufferWriter overloads and throws MissingMethodException with Jakar.Json 10.2.0. 10.1.0: initial release.