Skip to content

Encode

module Encode
AssemblyRanvier.Wire
Attributes[<RequireQualifiedAccess>]

Functions and values

helpers: IEncoderHelpers<JsonNode>

Builds a JsonNode, so an encoder written against Thoth.Json.Core runs on System.Text.Json.

toString (space: int) (value: IEncodable) : string

Write an encodable as a JSON string, indented by the given number of spaces. Pass 0 for a single line.

toStringWithOptions (options: JsonSerializerOptions) (value: IEncodable) : string

Write an encodable as a JSON string with caller-supplied JsonSerializerOptions, giving control over indentation, escaping and depth.