mirror of
https://github.com/zap-proto/fiber.git
synced 2026-10-30 15:06:23 +00:00
1.0 KiB
1.0 KiB
id, title, sidebar_position
| id | title | sidebar_position |
|---|---|---|
| faster-fiber | ⚡ Make Fiber Faster | 7 |
Custom JSON Encoder/Decoder
Fiber defaults to the standard encoding/json for stability and reliability. If you need more speed, consider these libraries:
package main
import "github.com/gofiber/fiber/v3"
import "github.com/goccy/go-json"
func main() {
app := fiber.New(fiber.Config{
JSONEncoder: json.Marshal,
JSONDecoder: json.Unmarshal,
})
// ...
}