Header menu logo FSharp.ATProto

Json Module

Shared JSON serialization configuration for the AT Protocol.

Functions and values

Function or value Description

options

Full Usage: options

Returns: JsonSerializerOptions

Pre-configured JsonSerializerOptions for AT Protocol JSON serialization.

The options are configured with:

  • camelCase property naming (e.g. F# AccessJwt serializes as "accessJwt").
  • Null fields are omitted when writing (JsonIgnoreCondition.WhenWritingNull).
  • F# discriminated unions use internal $type tag discrimination with named fields via FSharp.SystemTextJson.
  • Syntax identifier types (Did, Handle, etc.) serialize as validated JSON strings.
This singleton instance is shared across the Xrpc module and all serialization in the library.

Returns: JsonSerializerOptions

Type something to start searching.