UNPKG

@microsoft.azure/autorest.testserver

Version:
16 lines 508 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.json = void 0; /** * Serialize the provided content as json to use in a MockResponse body. * @content Object to return as json. * @returns {MockResponseBody} response body with application/json content type. */ const json = (content) => { return { contentType: "application/json", rawContent: JSON.stringify(content), }; }; exports.json = json; //# sourceMappingURL=response-content-utils.js.map