beam: github.com/apache/beam/sdks/go/pkg/beam/core/util/jsonx Index | Files

package jsonx

import "github.com/apache/beam/sdks/go/pkg/beam/core/util/jsonx"

Package jsonx contains utilities for working with JSON encoded data.

TODO(BEAM-9616): Delete this package once the SDK defaults to schemas.

Index

Package Files

jsonx.go

func Marshal Uses

func Marshal(elem interface{}) ([]byte, error)

Marshal encodes a given value as JSON, and returns the bytes.

func MarshalTo Uses

func MarshalTo(elem interface{}, w io.Writer) error

MarshalTo encodes a given value as JSON, and returns the bytes.

func Unmarshal Uses

func Unmarshal(elem interface{}, data []byte) error

Unmarshal decodes a given value as JSON, and returns the bytes. The passed in element must be a pointer of the given type.

func UnmarshalFrom Uses

func UnmarshalFrom(elem interface{}, r io.Reader) error

UnmarshalFrom decodes a given value as JSON, and returns the bytes. The passed in element must be a pointer of the given type.

Package jsonx imports 3 packages (graph) and is imported by 2 packages. Updated 2020-09-24. Refresh now. Tools for package owners.