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
Categories
JSONLicense
MIT LicenseFollow easyjson
Other Useful Business Software
$300 in Free Credit for Your Google Cloud Projects
Launch your next project with $300 in free Google Cloud credit—no hidden charges. Test, build, and deploy without risk. Use your credit across the Google Cloud platform to find what works best for your needs. After your credits are used, continue building with free monthly usage products. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of easyjson!