createJSONResponse | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function createJSONResponse

    • Create a webresponse returning a JSON body

      Parameters

      • status: HTTPStatusCode
      • jsonbody: unknown

        The JSON body to return

      • Optionaloptions: { headers?: Record<string, string> | Headers; indent?: boolean }

        Optional statuscode and headers

      Returns WebResponse