isJSONObject
Checks whether a value is a plain object whose every own value is a valid JSON value (see isJSONValue).
Available since v3.0.3
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”value is Record<string, unknown> — true if value is a plain object of JSON values
Examples
Section titled “Examples”Validate a JSON object
Section titled “Validate a JSON object”Checks that a value is a plain object whose every value is JSON-representable.
