apimachinery: k8s.io/apimachinery/pkg/util/json Index | Files

package json

import "k8s.io/apimachinery/pkg/util/json"

Index

Package Files

json.go

func Marshal Uses

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

Marshal delegates to json.Marshal It is only here so this package can be a drop-in for common encoding/json uses

func NewEncoder Uses

func NewEncoder(w io.Writer) *json.Encoder

NewEncoder delegates to json.NewEncoder It is only here so this package can be a drop-in for common encoding/json uses

func Unmarshal Uses

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

Unmarshal unmarshals the given data If v is a *map[string]interface{}, numbers are converted to int64 or float64

Package json imports 3 packages (graph) and is imported by 189 packages. Updated 2018-03-20. Refresh now. Tools for package owners.