Header menu logo FSharp.ATProto

AtpJson Module

JSON <-> AtpValue conversion with AT Protocol conventions ($link, $bytes, $type, blobs).

Functions and values

Function or value Description

fromJson element

Full Usage: fromJson element

Parameters:
Returns: Result<AtpValue, string>

Convert a JSON element to AtpValue with data model validation. Top-level must be an object. Validates $type, $link, $bytes, blob structure.

element : JsonElement
Returns: Result<AtpValue, string>

toJsonNode value

Full Usage: toJsonNode value

Parameters:
Returns: JsonNode

Convert an AtpValue to a JSON node.

value : AtpValue
Returns: JsonNode

Type something to start searching.