MCPcopy Index your code
hub / github.com/angular/angular / transform

Method transform

packages/common/src/pipes/json_pipe.ts:37–41  ·  view source on GitHub ↗

* @param value A value of any type to convert into a JSON-format string.

(value: unknown)

Source from the content-addressed store, hash-verified

35 * @param value A value of any type to convert into a JSON-format string.
36 */
37 transform(value: unknown): string {
38 ngDevMode && warnIfSignal('JsonPipe', value);
39
40 return JSON.stringify(value, null, 2);
41 }
42}

Callers

nothing calls this directly

Calls 1

warnIfSignalFunction · 0.90

Tested by

no test coverage detected