jsonparser icon indicating copy to clipboard operation
jsonparser copied to clipboard

One of the fastest alternative JSON parser for Go that does not require schema

Results 74 jsonparser issues
Sort by recently updated
recently updated
newest added

**Description**: What this PR does The LineIndex struct provides OffsetToLineCol() which translates offsets from Get() into line, byte column, and rune column locations. When parsing a json file, this provides...

``` data := "{'value':'data'}" str, err := jsonparser.GetString([]byte(data), "value") if err != nil { fmt.Print(err) } else { fmt.Print(str) } ``` This example fails to find the key "value" because...

Currently I use this code to get len. Is there any way more directly? ``` func getObjectLen(value []byte) (int, error) { ret := 0 objectCallback := func(key []byte, value []byte,...

I'm working with an endpoint that is subject to dynamic updates in key and value pairs. What is the most efficient way to parse a nested json object in a...

hi I am following the exception when dealing with json containing special characters Example json: {"name":"test","sql":"select \`name`\ from tables"} Panic: Value looks like Number/Boolean/None, but can't find its end: ','...

bug

i did this `configBytes, err := j.Set(configByte, []byte("http://github.com"), "test")` then the json is `"test":http://github.com,` i try a int like `configBytes, err := j.Set(configByte, []byte("2"), "test")` then it works `"test":2,` because...

Example: you have array of maps, and you need add extra fields to each element of array. This may cause an issue, if maps are big enough. After extending each...

Greetings, i have two json objects like below. First One. ``` [ { "data_header": { "callid": "[email protected]_b2b-1" }, "id": 676, "protocol_header": { "captureId": "2001" } } ] ``` Second One....

I’m interested in getting the dimensions of the JSON structure or obtaining a difference between two structures to know if the match or not.

Currently we have : ``` EachKey ArrayEach ObjectEach ``` ArrayEach and ObjectEach almost do same function, and have same parameters, but the function declarations/def are bit different Suggest overriding EachKey...