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

https://github.com/golang/go/issues/8592 Like this discussion for std json lib. Golang's standard lib won't change, so I really like to see a good third party lib can support.

When unmarshalling an UUID object an error is thrown. This happens because ffjson doesn't fallback to MarshalText/UnmarshalText methods as the default go's (un)marshal does. The following code snipped reproduces this...

Hello, When attempting to Unmarshal something like so: ``` go type Dog struct { Name *string Color *string Age *int Tricks []string } jsonStr := ` { "name" : "Buddy",...

All, my results of running benchmarks against `ffjson` and `encoding/json` show that `ffjson` does not meet the claims of being 2-3x faster than `encoding/json`; and, in-fact, is much slower. Should...

question

Having `\r` character as a value breaks unmarshaling, however this symbol doesn't cause any issue using native Go implementation.

Now in a scene, We will only output the assigned fields (that will be given). The tag `omitempty` will ignore the fields if it is not set (that fields will...

Please consider assigning version numbers and tagging releases. Tags/releases are useful for downstream package maintainers (in [Debian](http://debian.org) and other distributions) to export source tarballs, automatically track new releases and to...

According to their headers, some files are licensed under "BSD-style license that can be found in the LICENSE file" however text of the license is missing.

The function [WriteJsonString](https://github.com/pquerna/ffjson/blob/697feb55bc0a0b0b0303bea09e87df6dfadf8411/fflib/v1/jsonstring.go#L42) converts a string to a []byte each time it's called leading to unnecessary allocations, as the WriteJson function could also work with strings. This could be fixed...