json

package
v0.0.0-...-25f6002 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Unmarshal is an alias for json.Unmarshal
	Unmarshal = json.Unmarshal

	// Marshal is an alias for json.Marshal
	Marshal = json.Marshal
)

Functions

func Decode

func Decode(bites []byte, target interface{}, disallowUnknownFields bool) error

Decode will parse the json byte array to the target object. When unknown fields are _not_ allowed we still accept unknown fields in the Object's metadata

See https://github.com/knative/serving/issues/11448 for details

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL