ParseEncodedJson overview

Added in v2.0.0


Table of contents


Printer Parsers

ParseEncodedJsonString

Applies a fallible string mapping function to a schema which parses a Json string. Useful for things like conversion between character encodings.

Signature

export declare const ParseEncodedJsonString: (
  decode: (encoded: string) => Either<unknown, string>,
  encode: (jsonString: string) => Either<unknown, string>,
  options?: (ParserOptions & { readonly nameOverride?: string | undefined }) | undefined
) => <I, O>(inner: Schema<I, O>) => Schema<Const<Opaque<string, { JsonString: unique symbol }>, I>, O>

Added in v2.0.0