JsonArrayA readonly array of Json values.
modelsJson
Source effect/Schema.ts:141451 lines
export interface JsonArray extends interface ReadonlyArray<T>ReadonlyArray<type Json =
| string
| number
| boolean
| JsonArray
| JsonObject
| null
Recursive TypeScript type for any valid immutable JSON value: null,
number, boolean, string, a readonly array of Json values, or a
readonly record of string → Json. For the corresponding schema, see the
Json
const.
Schema that accepts and validates any immutable JSON-compatible value.
Example (Validating a JSON value)
import { Schema } from "effect"
const result = Schema.decodeUnknownOption(Schema.Json)({ key: [1, true, null] })
console.log(result._tag) // "Some"
Json> {}Referenced by 1 symbols