package json
import "github.com/IBM/fp-go/json"
Index ¶
- func Marshal[A any](a A) E.Either[error, []byte]
- func ToTypeE[A any](src any) E.Either[error, A]
- func ToTypeO[A any](src any) O.Option[A]
- func Unmarshal[A any](data []byte) E.Either[error, A]
Functions ¶
func Marshal ¶
Marshal converts a data structure to json
func ToTypeE ¶
func ToTypeO ¶
func Unmarshal ¶
Unmarshal parses a JSON data structure from bytes
Source Files ¶
- Version
- v1.0.151 (latest)
- Published
- Nov 23, 2024
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 4 months ago –
Tools for package owners.