ffjson icon indicating copy to clipboard operation
ffjson copied to clipboard

faster JSON serialization for Go

Results 63 ffjson issues
Sort by recently updated
recently updated
newest added

As per my API definition, I have defined some custom types which actually are booleans: e.g. ``` type EmbedParam bool ``` in the generated code, I get ``` var tval...

For the following go file: ``` package bug type Struct struct { Field map[string][]Obj } type Obj string ``` running ffjson results in a go file that can't be compiled:...

On a Fedora 34 VM with golang 1.16, the ffjson generated code (archive_ffjson.go) fails to compile: ``` GO111MODULE=on go build -mod=vendor -compiler gc -tags " " ./cmd/containers-storage # github.com/containers/storage/pkg/archive pkg/archive/archive_ffjson.go:13:2:...

I found it difficult to get started from the README, so I created a fully-worked example showing off the bare minimum steps from start to finish to use ffjson. Happily,...

With go 1.16.3, doing ```make test``` fails with ``` go install github.com/pquerna/ffjson go install: version is required when current directory is not in a module Try 'go install github.com/pquerna/ffjson@latest' to...

ffjson generates wrong marshaler for github/google/uuid#UUID type It implements `fmt.Stringer`, `encoding.BinaryMarshaler` and `encoding.TextMarshaler`. Insead of expected ```json {"Bar":"0eec3f57-eb61-4833-a78e-fdf6eb8ac4ae"} ``` I get ```json {"Bar":[14,236,63,87,235,97,72,51,167,142,253,246,235,138,196,174]} ``` main.go ```go package ffjson_uuid import "github.com/google/uuid"...

Consider following declared types, as found in the [github.com/golang/geo/s2](github.com/golang/geo/s2) package: ``` package s2 type CellID uint64 type CellUnion []CellID ``` This package is then used in another file as follows:...

Error when executing ffjson benchmark.go command ![image](https://user-images.githubusercontent.com/28834227/76819309-c3c7c180-6842-11ea-9643-1dbbe39ea2dd.png)