json icon indicating copy to clipboard operation
json copied to clipboard

An efficient JSON decoder

Results 7 json issues
Sort by recently updated
recently updated
newest added

It seems the current version of `pkg/json` does not yet support decoding into struct tyoes. As `pkg/josn` is still in development, the issue is probably known. This issue is meant...

When re-encoding a stream back to text, the encoding/json library uses the .More() method to tell if it needs to place a comma. You can peek ahead to the next...

### func BenchmarkParseNumber(b *testing.B) { _Hi Dave I think a small change should be done for this func() To see an issue quickly just run this line_ `go test -bench=.Parse.`...

Hello, I'm looking to use something like the `byteReader` approach for one of my projects, and looking at it a bit more closely, I see that the `json` package considers...

This PR contains a failing test for an incorrect decoding of object key containing `"`. Test case: ```json {"a\"b":0} ```

```go func TestBoolStack(t *testing.T) { var bs stack bs.push(true) bs.push(false) bs.push(true) for i := len(bs); i > 0; i-- { t.Log(bs.len(), bs.pop()) } } ``` Output: ``` === RUN TestBoolStack...