k8s.io/apimachinery/pkg/util/json.Marshal
third-partyThe 2507th most-called third-party function by production calls. Called 362 times across 26 modules; 240 of those run outside tests and generated code.
All of k8s.io/apimachinery/pkg/util/json → Docs on pkg.go.dev ↗
- prod calls
- 240
- non-test, non-generated
- all calls
- 362
- total callsites
- modules
- 26
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 34%
- 122 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Package function43%A direct call to an exported package function, resolved by type.
- Package function (by syntax)57%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into Marshal from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 168 70%
- KubeVirt 23 10%
- Istio 8 3%
where it's called
Callsites in the wild
12 representative callsites of 362, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
k8s.io/apimachinery @v0.36.3
pkg/runtime/codec_check.go:40
in loop -
k8s.io/apiextensions-apiserver @v0.36.3
pkg/apiserver/schema/listtype/validation.go:106
in loop -
kubernetes/kubernetes @master
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/listtype/validation.go:106 ↗
in loop -
kubernetes/kubernetes @master
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce.go:113 ↗
in loop -
k8s.io/apiextensions-apiserver @v0.36.3
pkg/apiserver/schema/objectmeta/coerce.go:113
in loop -
k8s.io/kubernetes @v1.36.3
pkg/controller/daemon/update.go:429
in loop - in loop
- in loop test
-
kubernetes/kubernetes @master
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/convert_test.go:83 ↗
in loop test -
k8s.io/apiextensions-apiserver @v0.36.3
pkg/apiserver/schema/convert_test.go:83
in loop test -
k8s.io/apiextensions-apiserver @v0.36.3
pkg/apiserver/validation/validation_test.go:92
in loop test
top callers
The modules that reach for it
The modules that call Marshal most in this snapshot.
- github.com/kubernetes/kubernetes12133%
- k8s.io/apiextensions-apiserver3510%
- k8s.io/apimachinery288%
- k8s.io/kubernetes277%
- github.com/kubevirt/kubevirt257%
siblings
More from k8s.io/apimachinery/pkg/util/json
The other most-called functions in this package. See all →