Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

go

> 编程语言
Open source

A high-performance 100% compatible drop-in replacement of "encoding/json"

135.8K stars0 likes1 views
WebsiteGitHub

About

A high-performance 100% compatible drop-in replacement of "encoding/json"

A high-performance 100% compatible drop-in replacement of "encoding/json" Benchmark

Source code: https://github.com/json-iterator/go-benchmark/blob/master/src/github.com/json-iterator/go-benchmark/benchmark_medium_payload_test.go

Raw Result (easyjson requires static code generation)

ns/op allocation bytes allocation times
std decode 35510 ns/op 1960 B/op 99 allocs/op
easyjson decode 8499 ns/op 160 B/op 4 allocs/op
jsoniter decode 5623 ns/op 160 B/op 3 allocs/op
std encode 2213 ns/op 712 B/op 5 allocs/op
easyjson encode 883 ns/op 576 B/op 3 allocs/op
jsoniter encode 837 ns/op 384 B/op 4 allocs/op

Always benchmark with your own workload. The result depends heavily on the data input. Usage

100% compatibility with standard lib

Replace

with

Replace

with

More documentation How to get Contribution Welcomed !

Contributors

  • thockin
  • mattn
  • cch123
  • Oleg Shaldybin
  • Jason Toffaletti

Report issue or pull request, or email [email protected], or

Issues· 272 open

View all issuesOpen on GitHub
  • #720

    jsoniter.Unmarshal incorrectly sets pre-initialized map[string]any to nil when input begins with letter "n"

    Updated Nov 27, 2025
  • #718

    Bug:Dead Loop Two when Two structs are mutually dependent。

    Updated Nov 20, 2025
  • #717

    Bug: jsoniter.UnmarshalFromString

    Updated Nov 17, 2025
  • #707

    Marshal failure with Go 1.24 rc and GOARCH=386

    Updated Sep 6, 2025
  • #715

    Flatten non embedded fields

    Updated Aug 11, 2025
  • #714

    Support omitzero tag

    Updated Jul 2, 2025
  • #622

    多个不同库的 RegisterTypeDecoderFunc 会覆盖?

    Updated Jun 10, 2025
  • #567

    support data type auto cast

    Updated May 11, 2025
  • #709

    error in `objectLazyAny.ToVal` is not reported

    Updated Mar 28, 2025
  • #298

    panic sometimes....

    Updated Mar 10, 2025

> Tags

Godeserializationgogolangjson

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言