MCPcopy Create free account
hub / github.com/Effect-TS/effect / json

Function json

packages/platform/browser/src/BrowserHttpClient.ts:289–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287 }
288
289 get json(): Effect.Effect<Schema.Json, E> {
290 return Effect.flatMap(this.text, (text) =>
291 Effect.try({
292 try: () => text === "" ? null : JSON.parse(text),
293 catch: this.onError
294 }))
295 }
296
297 get urlParamsBody(): Effect.Effect<UrlParams.UrlParams, E> {
298 return Effect.flatMap(this.text, (text) =>

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected