kubernetes/vendor/github.com/go-openapi/swag/json.go

var nullJSON

var DefaultJSONNameProvider

const comma

var closers

func init() {}

type ejMarshaler

type ejUnmarshaler

// WriteJSON writes json data, prefers finding an appropriate interface to short-circuit the marshaler
// so it takes the fastest option available.
func WriteJSON(data interface{}

// ReadJSON reads json data, prefers finding an appropriate interface to short-circuit the unmarshaler
// so it takes the fastest option available
func ReadJSON(data []byte, value interface{}

// DynamicJSONToStruct converts an untyped json structure into a struct
func DynamicJSONToStruct(data interface{}

// ConcatJSON concatenates multiple json objects efficiently
func ConcatJSON(blobs ...[]byte) []byte {}

// ToDynamicJSON turns an object into a properly JSON typed structure
func ToDynamicJSON(data interface{}

// FromDynamicJSON turns an object into a properly JSON typed structure
func FromDynamicJSON(data, target interface{}

type NameProvider

type nameIndex

// NewNameProvider creates a new name provider
func NewNameProvider() *NameProvider {}

func buildnameIndex(tpe reflect.Type, idx, reverseIdx map[string]string) {}

func newNameIndex(tpe reflect.Type) nameIndex {}

// GetJSONNames gets all the json property names for a type
func (n *NameProvider) GetJSONNames(subject interface{}

// GetJSONName gets the json name for a go property name
func (n *NameProvider) GetJSONName(subject interface{}

// GetJSONNameForType gets the json name for a go property name on a given type
func (n *NameProvider) GetJSONNameForType(tpe reflect.Type, name string) (string, bool) {}

func (n *NameProvider) makeNameIndex(tpe reflect.Type) nameIndex {}

// GetGoName gets the go name for a json property name
func (n *NameProvider) GetGoName(subject interface{}

// GetGoNameForType gets the go name for a given type for a json property name
func (n *NameProvider) GetGoNameForType(tpe reflect.Type, name string) (string, bool) {}