import { BaseError } from '../../exception/index.js'
import {
ApplicationProtocolVersion,
+ MapStringifyFormat,
type ProcedureName,
type Protocol,
type ProtocolRequest,
Constants,
generateUUID,
isNotEmptyString,
- JSONStringifyWithMapSupport,
+ JSONStringify,
logger,
logPrefix
} from '../../utils/index.js'
.writeHead(this.responseStatusToStatusCode(payload.status), {
'Content-Type': 'application/json'
})
- .end(JSONStringifyWithMapSupport(payload))
+ .end(JSONStringify(payload, undefined, MapStringifyFormat.object))
} else {
logger.error(
`${this.logPrefix(moduleName, 'sendResponse')} Response for unknown request id: ${uuid}`