Skip to main content

Module json

Module json 

Source

Enums§

JsonValue
Minimal JSON value representation with zero external dependencies. BTreeMap<String, JsonValue> preserves ascending Unicode code-point order because Rust String ordering compares UTF-8 bytes, which matches code-point order.

Functions§

canonical_binding_json
Build the canonical binding envelope JSON for (operation, scope, input).
canonical_binding_json_with_context
Build the canonical binding envelope with optional server-supplied context. Use None to omit the field and Some(&JsonValue::Null) to bind JSON null.
canonical_hash
Compute the 64-character lowercase SHA-256 hex digest of the canonical write binding.
canonical_hash_with_context
Compute the SHA-256 digest of the canonical write binding with optional context.
canonical_json
Serialize any JsonValue to deterministic canonical JSON matching SPEC.md section 3.
parse_json
Parse a JSON string into a JsonValue.