encoding icon indicating copy to clipboard operation
encoding copied to clipboard

Go package containing implementations of efficient encoding, decoding, and validation APIs.

Results 20 encoding issues
Sort by recently updated
recently updated
newest added

I see that StartGroup is not defined: https://github.com/segmentio/encoding/blob/101dc9c5750213ca76cdac2fbc96d667f855555f/proto/message.go#L142-L149 I think this is a problem, as some servers are still using it, for example `android.clients.google.com`.

bug
enhancement

I have a test string that has a value with an escaped UNC path in it . It validates ok according to: https://jsonlint.com/ **`"{\"dataPath\":\"\\\\bnk11977fs\\bnk11977\\xyz11146682\\xyzdata\\\"}"`** When you pass it through json.Unescape...

Hi! Me again with another proposal! `json.Parse` offers a readily available alternative to `json.Unmarshal` with the simple addition of flags. In comparison, `json.Append` takes two extra parameters compared to `json.Marshal`:...

enhancement

```go func TestIssue110(t *testing.T) { type message struct { A *uint32 `protobuf:"fixed32,1,opt"` } var a uint32 = 0x41c06db4 data, _ := Marshal(message{ A: &a, }) var m message err :=...

This library currently encodes and decodes `time.Duration` values as strings. This deviates from the stdlib, as the type `time.Duration` does not implement `json.Marshaller` and is treated as an `int64` instead....

This PR fixes #63 by improving the handling of embedded pointers. Not surprisingly, these are a tricky bunch to contend with, so I've included a few test cases to demonstrate...

https://github.com/segmentio/encoding/issues/52 illustrates that it's not obvious how to benchmark against other libraries. We should document how this is done.

Hello, I recently tried using your library in one of our software, and I'd like to report an issue that we have when doing so. The output when calling Marshal...

i'm check proto package and it works fine for grpc codec, do you plan to add jsonpb package ?

While using segmentio's json Unmarshaling to unmarshal data to a struct having ` field *int `json:"Field,string" ` in its definition , I'm getting field as "null" instead of null if...

bug