{"repo":"mailru/easyjson","free":true,"listed":false,"github":"https://github.com/mailru/easyjson","clone":"git clone https://github.com/mailru/easyjson.git","description":"Fast JSON serializer for golang.","language":"Go","stars":4912,"topics":["golang","json","json-serialization","code-generation","json-parser","perfomance"],"license":"MIT","category":"dev-tools","readme_excerpt":"easyjson 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. Usage Install: or Run: The above will generate easyjson.go containing the appropriate marshaler and unmarshaler funcs for all structs contained in .go . Please note that easyjson requires a full Go build environment and the GOPATH environment variable to be set. This is because easyjson code generation invokes go run on a temporary file (an approach to code generation borrowed from ffjson). Serialize Deserialize Please see the GoDoc for more information and features. Options Using -all will generate marshalers/unmarshalers for all Go structs in the file excluding those structs whose preceding comment starts with easyjson:skip . For example: If -all is not provided, then only those structs whose preceding comment starts with easyjson:json will have marshalers/unmarshalers generated. For example: Additional option notes: -snake case tells easyjson to generate snake\\ c","default_branch":null,"files":null,"tree":[],"storefront":"/r/mailru","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mailru/easyjson/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}