jsonparser
jsonparser copied to clipboard
One of the fastest alternative JSON parser for Go that does not require schema
**Description**: What this PR does Added Install on README | Can't find the command on how to Install
Versions: Go 1.18.1 jsonparser v1.1.1 `jsonparser.Get` panics on array input with empty string in path. Details below Try these ```go jsonparser.Get([]byte(`{}`), "") jsonparser.Get([]byte(`{`), "") ``` These return proper errors ```...
The `EachKey` API does not work coherently to the `Get` one w.r.t array of strings. Meaning that it does not work on paths like "request>headers>User-Agent>[0]", while `Get` does. Here's a...
**Description**: In master, EachKey cannot extract from an array of strings. Specifying `foo.[0]` would return nothing for `{"foo": ["a","b"]}`, because EachKey calls the Get function twice and in the case...
This is an awesome library, but is it possible to stream byte arrays somehow for being able to parse super large JSON files?
Could we consider renaming the default branch from `master` to something more inclusive? It appears that most providers have chosen to change their default from `master` to `main` (e.g. [GitHub](https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-created-repositories-is-now-main/),...
**Description**: What this PR does update jsonparser version to v1.1.1 in benchmark package **Benchmark before change**: **Benchmark after change**: For running benchmarks use: ``` go test -test.benchmem -bench JsonParser ./benchmark/...
I'm finding this problem when i run "go install github.com/buger/jsonparser@latest" in my terminal, could someone help?  I'm using, GoLang 1.18 and the vscode terminal up there /\ and the...
` data := []byte(`{ "person": { "name": { "first": "Leonid", "last": "Bugaev", "fullName": "Leonid Bugaev" }, "github": { "handle": "buger", "followers": 109 }, "avatars": [ { "url": "https://avatars1.githubusercontent.com/u/14009?v=3&s=460", "type": "thumbnail"...
Hi, is there any way to continue an iteration in the the ArrayEach block? The compiler shows error: **continue not in for statement** Best, Gabriele