json.go — fiber Source File
Architecture documentation for json.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e22cb2ad_4910_e149_6e5c_fecedfefbfb5["json.go"] baa5866c_7884_3b82_5e75_ef5c8f224470["v2"] e22cb2ad_4910_e149_6e5c_fecedfefbfb5 --> baa5866c_7884_3b82_5e75_ef5c8f224470 style e22cb2ad_4910_e149_6e5c_fecedfefbfb5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
package binder
import (
"github.com/gofiber/utils/v2"
)
// JSONBinding is the JSON binder for JSON request body.
type JSONBinding struct {
JSONDecoder utils.JSONUnmarshal
}
// Name returns the binding name.
func (*JSONBinding) Name() string {
return "json"
}
// Bind parses the request body as JSON and returns the result.
func (b *JSONBinding) Bind(body []byte, out any) error {
return b.JSONDecoder(body, out)
}
// Reset resets the JSONBinding binder.
func (b *JSONBinding) Reset() {
b.JSONDecoder = nil
}
Types
Dependencies
- v2
Source
Frequently Asked Questions
What does json.go do?
json.go is a source file in the fiber codebase, written in go.
What does json.go depend on?
json.go imports 1 module(s): v2.
Where is json.go in the architecture?
json.go is located at binder/json.go (directory: binder).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free