• Tests whether unknown value is a valid JSON type. Note that objects and arrays are only checked using a shallow test. To be sure that a given value is JSON-compatible at runtime, see toAnyJson.

    Parameters

    • value: unknown

      The value to test.

    Returns value is AnyJson