-
- 概览
-
- 概览
- std/build
- std/build/billing
- std/build/billing/rate-card
- std/build/collection
- std/build/collection/record-label
- std/build/collection/system-fields
- std/build/date
- std/build/error
- std/build/finance
- std/build/finance/currency
- std/build/i18n
- std/build/i18n/catalog
- std/build/i18n/locale
- std/build/json
- std/build/rate-limit
- std/build/reckon
- std/build/reckon/cel.server
- std/build/reckon/definition
- std/build/reckon/deps
- std/build/reckon/hash
- std/build/reckon/ops
- std/build/reckon/register.server
- std/build/reckon/replay
- std/build/reckon/runtime.server
- std/build/secret
- std/build/string
- std/build/tree
std/build/json
std/build/json
Type Aliases
JsonPatchOperation
type JsonPatchOperation = Schema.Schema.Type<typeof JsonPatchOperationSchema>;Defined in: apps/website/.api-docs-entry/std/build/json/index.d.ts:13
Variables
JsonPatchOperationSchema
const JsonPatchOperationSchema: Schema.Struct<{
op: Schema.Literals<readonly ["add", "remove", "replace"]>;
path: Schema.String;
value: Schema.optional<Schema.Unknown>;
}>;Defined in: apps/website/.api-docs-entry/std/build/json/index.d.ts:8
One mutation in a JSON Patch document, as deepDiff and the form engine's delta carry it.
The wire shape has one schema owner so both producers and consumers agree on the op names — a
move or copy op drifts out of the form engine's vocabulary and back in as a misapplied diff.
Functions
deepDiff()
function deepDiff(
a,
b,
basePath?): object[];Defined in: apps/website/.api-docs-entry/std/build/json/index.d.ts:22
Parameters
| Parameter | Type |
|---|---|
a |
unknown |
b |
unknown |
basePath? |
string |
Returns
object[]
safeParse()
function safeParse(json): unknown;Defined in: apps/website/.api-docs-entry/std/build/json/index.d.ts:21
Parse a JSON string, returning null on failure.
Returns unknown — callers must decode the result with an Effect Schema
before treating it as a concrete type. This is the
unvalidated boundary parse; structured validation belongs at the call site.
Parameters
| Parameter | Type |
|---|---|
json |
string |
Returns
unknown