Package easyjson provides a fast and easy way to marshal/unmarshal Go structs to/from JSON without the use of reflection. In performance tests, easyjson outperforms the standard encoding/json package by a factor of 4-5x, and other JSON encoding packages by a factor of 2-3x. easyjson aims to keep generated Go code simple enough so that it can be easily optimized or fixed. Another goal is to provide users with the ability to customize the generated code by providing options not available with the standard encoding/json package, such as generating "snake_case" names or enabling omitempty behavior by default.

Features

  • 'nocopy' - disables allocation and copying of string values, making them refer to original json buffer memory
  • Generated Marshaler/Unmarshaler Funcs
  • Control easyjson Marshaling and Unmarshaling Behavior
  • Type Wrappers
  • Memory Pooling
  • String interning

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

MIT License

Follow easyjson

easyjson Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of easyjson!

Additional Project Details

Programming Language

Go

Related Categories

Go JSON Software

Registered

2023-10-09