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

Function json

packages/platform-browser/src/internal/httpClient.ts:202–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200 }
201
202 get json(): Effect.Effect<unknown, E> {
203 return Effect.tryMap(this.text, {
204 try: (_) => _ === "" ? null : JSON.parse(_) as unknown,
205 catch: this.onError
206 })
207 }
208
209 get urlParamsBody(): Effect.Effect<UrlParams.UrlParams, E> {
210 return Effect.flatMap(this.text, (_) =>

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…