Represents an immutable JSON object with string keys and JsonValue values. The object itself and all nested structures are readonly, ensuring immutability throughout the entire object tree.
JsonValue
const config: JsonObject = { database: { host: "localhost", port: 5432, ssl: true }, features: ["auth", "logging"]};// config.database.port = 3306; // ✗ Error: readonly property Copy
const config: JsonObject = { database: { host: "localhost", port: 5432, ssl: true }, features: ["auth", "logging"]};// config.database.port = 3306; // ✗ Error: readonly property
Represents an immutable JSON object with string keys and
JsonValuevalues. The object itself and all nested structures are readonly, ensuring immutability throughout the entire object tree.