json

package
v0.0.0-...-2cb4bbe Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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