MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / toJSON

Function toJSON

packages/testlab/src/to-json.ts:52–54  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

50): object | null | undefined;
51
52export function toJSON<T>(value: T) {
53 return JSON.parse(JSON.stringify({value})).value;
54}

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected