package json

import "github.com/IBM/fp-go/json"

Index

Functions

func Marshal

func Marshal[A any](a A) E.Either[error, []byte]

Marshal converts a data structure to json

func ToTypeE

func ToTypeE[A any](src any) E.Either[error, A]

func ToTypeO

func ToTypeO[A any](src any) O.Option[A]

func Unmarshal

func Unmarshal[A any](data []byte) E.Either[error, A]

Unmarshal parses a JSON data structure from bytes

Source Files

json.go type.go

Version
v1.0.151 (latest)
Published
Nov 23, 2024
Platform
linux/amd64
Imports
4 packages
Last checked
4 months ago

Tools for package owners.