decodeJSON() — gin Function Reference
Architecture documentation for the decodeJSON() function in json.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD cfa45846_5276_4c98_c0a5_2b22a1da0eff["decodeJSON()"] 337e241a_1f93_4af5_56bc_9cc6ef115f71["Bind()"] 337e241a_1f93_4af5_56bc_9cc6ef115f71 -->|calls| cfa45846_5276_4c98_c0a5_2b22a1da0eff b247a0e8_4ce2_c341_af60_81564c15e33c["BindBody()"] b247a0e8_4ce2_c341_af60_81564c15e33c -->|calls| cfa45846_5276_4c98_c0a5_2b22a1da0eff style cfa45846_5276_4c98_c0a5_2b22a1da0eff fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/json.go lines 44–56
func decodeJSON(r io.Reader, obj any) error {
decoder := json.API.NewDecoder(r)
if EnableDecoderUseNumber {
decoder.UseNumber()
}
if EnableDecoderDisallowUnknownFields {
decoder.DisallowUnknownFields()
}
if err := decoder.Decode(obj); err != nil {
return err
}
return validate(obj)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does decodeJSON() do?
decodeJSON() is a function in the gin codebase.
What calls decodeJSON()?
decodeJSON() is called by 2 function(s): Bind, BindBody.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free