MCPcopy
hub / github.com/Effect-TS/effect / json

Function json

packages/platform-node/src/internal/httpIncomingMessage.ts:56–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 }
55
56 get json(): Effect.Effect<unknown, E> {
57 return Effect.tryMap(this.text, {
58 try: (_) => _ === "" ? null : JSON.parse(_) as unknown,
59 catch: this.onError
60 })
61 }
62
63 get unsafeJson(): unknown {
64 return Effect.runSync(this.json)

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…