⚡ Make Fiber Faster
Custom JSON Encoder/Decoder
Fiber defaults to the standard encoding/json
for stability and reliability. If you need more speed, consider these libraries:
Example
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,
})
// ...
}