sveltekit-service-manager - v1.1.0
    Preparing search index...

    Function json

    • Create a JSON response.

      Notes:

      • Does not set Content-Length (byte length is runtime-dependent; let the platform handle it)
      • Safely handles null/undefined and objects with toJSON()

      Parameters

      • data: unknown
      • init: ResponseInit = {}

      Returns Response