View as Markdown

API reference: @salmonui/core/data

isJsonValuefunction

import { isJsonValue } from '@salmonui/core/data';
function isJsonValue(value: unknown): value is Json;

True when value survives a JSON round trip unchanged: null, booleans, finite numbers, strings, arrays, and plain objects of those. undefined is allowed only as an object property value (it is dropped by JSON).