@ac-essentials/misc-util
    Preparing search index...

    Function jsonSerialize

    • Serialize a value to a JSON-compatible format.

      The function follows the same rules as JSON.stringify, but instead of returning a string, it returns the serialized value directly.

      Type Parameters

      • T

      Parameters

      • value: T

        The value to serialize.

      • Optionalreplacer: JsonReplacer

        A function that transforms the result

      Returns undefined | Jsonify<T>

      A JSON representation of the value, or undefined if a "pure" value has been passed in argument.