JsonValue
ts
type JsonValue:
| null
| boolean
| number
| string
| {}
| JsonValue[];
A value that can be encoded as JSON.
Example
ts
const value: JsonValue = {
name: 'John',
age: 30,
isActive: true,
hobbies: ['reading', 'gaming'],
address: {
street: '123 Main St',
city: 'Anytown',
zip: '12345',
},
metadata: null,
}