Skip to main content Link Search Menu Expand Document (external link)

Json overview

A port of JSON.stringify and JSON.parse in the effect world


Table of contents


Utils

parse

Port of JSON.parse

Signature

export declare const parse: (
  text: string,
  reviver?: Parameters<typeof JSON.parse>[1]
) => Effect.Effect<unknown, MPortError.Type, never>

stringify

Port of JSON.stringify

Signature

export declare const stringify: (
  value: unknown,
  replacer?: Parameters<typeof JSON.stringify>[1]
) => Effect.Effect<string, MPortError.Type, never>