gjson icon indicating copy to clipboard operation
gjson copied to clipboard

Get JSON values quickly - JSON parser for Go

Results 86 gjson issues
Sort by recently updated
recently updated
newest added

Consider following tests. It's passing on 1.14.1 but fails on 1.14.2 with ``` # 1.14.2 Expected :{"_":[["-"]]} Actual :{"_":[[]]} ``` ```go package gjson import ( "testing" "github.com/stretchr/testify/assert" "github.com/tidwall/gjson" ) func...

I was trying to parse from latest GitHub releases, but I had a problem parsing "tag_name". Is this supported? Am I doing something wrong? --- Here is a piece of...

While playing around with the library, I tried looping over arrays combined with `@this`. The libary does seem to detect whether or not the given path is valid (`#.#.#.@this` does...

First of all,thank you for providing such a good source for json Query; As for me, I also need editing filed in json, hope for the function soon. thx again

Let's say I have 1..N values for a key. The JSON has X entries, and for N entries the keys will match. I want to create a `gjson.Result` in the...

Hi! How I could filter entries in a JSON like this: ```json { "e_ca_subject_field_empty": { "result": "pass" }, "e_cab_dv_conflicts_with_locality": { "result": "NA" } } ``` I want to filter out...

``` { "data":{ "outcomes":[ { } ] } } ``` Outcomes is an empty array and if we call Exists() it will return true because it will have `[]` in...

I believe there is an issue with the parser of JSON. When sent example JSON like `{"test":"1","message":{"example":"1","json_content":"{\"blocks\":[{\"text\":\"hello\ \",\"data_to_be_truncated\":\"here\"}","test2":"2","links":[]}}` The text after `hello\ \"` will be truncated for json_content which causes...

I have a bigger and more complex JSON object and want to search for a substring in every field, array, etc. Is such a query possible?